Thread (2 messages) flat view 2 messages, 2 authors, 2018-11-09

Re: [PATCH v1 1/1] Upcast size_t variables to uintmax_t when printing

From: Eric Sunshine <hidden>
Date: 2018-11-09 19:04:09

On Fri, Nov 9, 2018 at 9:46 AM [off-list ref] wrote:
When printing variables which contains a size, today "unsigned long"
is used at many places.
In order to be able to change the type from "unsigned long" into size_t
some day the future, we need to have a way to print 64 bit variables
s/day/& in/
on a system that has "unsigned long" defined to be 32 bit, link Win64.
s/link/like/
Upcast all those variables into uintmax_t before they are printed.
This is to prepare for a bigger change, when "unsligned long"
s/unsligned/unsigned/
will be converted into size_t for variables which may be > 4Gib.

Signed-off-by: Torsten Bögershausen <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help