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
typedef unsigned long PAR_ULONG; /* 32-or-more-bit quantity */
When building on windows-x86 using strawberryperl 5.28.1, this shows up a warning from gcc
sha1.c:153:4: warning: right shift count >= width of type [-Wshift-count-overflow]
T >>= 32;
But it seems like the real issue isn't really on that line, but up here where BYTEORDER and PAR_ULONG got out of sync. There's a lot of ways this could get fixed, but it seems like the simplest and probably best would be to just #include "config.h" in boot.c before it brings in mktemp.c, so this and main.c would be consistent about which types are used.
The text was updated successfully, but these errors were encountered:
caveat: I'm not terribly familar with how the perl headers are laid out, so maybe there's something you should bring in that in turn brings in config.h...
puetzk
changed the title
sha1.c?
sha1.c warnings due to inconsistent USE_64_BIT_INT
Feb 20, 2019
The logic in
PAR-Packer/myldr/sha1.c.PL
Lines 33 to 36 in 5a98e29
If perl.h has not been included, this defaults to BYTEORDER 0x12345678, which implies a 64-bit swap operation down at
PAR-Packer/myldr/sha1.c.PL
Lines 154 to 166 in 5a98e29
However, since it does not define U64TYPE or USE_64_BIT_INT, PAR_ULONG is only a 32-bit type:
PAR-Packer/myldr/sha1.c.PL
Line 51 in 5a98e29
When building on windows-x86 using strawberryperl 5.28.1, this shows up a warning from gcc
But it seems like the real issue isn't really on that line, but up here where BYTEORDER and PAR_ULONG got out of sync. There's a lot of ways this could get fixed, but it seems like the simplest and probably best would be to just
#include "config.h"
in boot.c before it brings in mktemp.c, so this and main.c would be consistent about which types are used.The text was updated successfully, but these errors were encountered: