mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-03-22 14:39:24 -05:00
Fix a 64-bit-cleanness error in sshcrc's generator.
Not that anyone actually needs to use that conditioned-out main(), since it only generates the table already present in the same source file, but since @ch3root's unused-variable patch touched it I tried compiling it and noticed in passing that I'd also got the wrong printf format directive for an unsigned long. (cherry picked from commit 9351a5bfe4b1630227581d77f1aff4ca729ab8c1)
This commit is contained in:
parent
ab147df175
commit
4dbf2ea85c
2
sshcrc.c
2
sshcrc.c
@ -202,7 +202,7 @@ int main(void)
|
|||||||
|
|
||||||
crc32_init();
|
crc32_init();
|
||||||
for (i = 0; i < 256; i++) {
|
for (i = 0; i < 256; i++) {
|
||||||
printf("%s0x%08XL%s",
|
printf("%s0x%08lXL%s",
|
||||||
(i % 4 == 0 ? " " : " "),
|
(i % 4 == 0 ? " " : " "),
|
||||||
crc32_table[i],
|
crc32_table[i],
|
||||||
(i % 4 == 3 ? (i == 255 ? "\n" : ",\n") : ","));
|
(i % 4 == 3 ? (i == 255 ? "\n" : ",\n") : ","));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user