Thread (1 message) 1 message, 1 author, 2023-09-02

Re: [PATCH v2] ref-filter: sort numerically when ":size" is used

From: Junio C Hamano <hidden>
Date: 2023-09-02 22:19:49

Kousik Sanagavarapu [off-list ref] writes:
 			} else if (atom->u.raw_data.option == RAW_LENGTH) {
-				v->s = xstrfmt("%"PRIuMAX, (uintmax_t)buf_size);
+				v->value = buf_size;
+				v->s = xstrfmt("%"PRIuMAX, v->value);
 			}
 			continue;
Interesting that typeof(.value) happens to be uintmax_t, keeping
this a safe change.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help