You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 14, 2023. It is now read-only.
Throughout the code variables of type size_t are printed as long (%ld). This is incorrect in two ways:
long is signed, whereas size_t is not
long may not be the same width as size_t -- in particular, on i386 (32-bit) systems long is usually a 64-bit integer, while size_t is 32 bit
The correct format specification for size_t is %zu. For ssize_t it is %zd. Pull requests are messy, so I'll just leave an old-fashioned patch-file here. Please, merge it in. Thank you!
Throughout the code variables of type
size_t
are printed aslong
(%ld
). This is incorrect in two ways:long
is signed, whereassize_t
is notlong
may not be the same width assize_t
-- in particular, on i386 (32-bit) systemslong
is usually a 64-bit integer, whilesize_t
is 32 bitThe correct format specification for
size_t
is%zu
. Forssize_t
it is%zd
. Pull requests are messy, so I'll just leave an old-fashioned patch-file here. Please, merge it in. Thank you!patch-warnings
The text was updated successfully, but these errors were encountered: