1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 17:38:00 +00:00

Bah, I've bumped into this often enough. Change one unsatisfactory cast for

another to shut up "warning: cast from pointer to integer of different size"
(and hence a -Werror compile failure) when compiling for Unix with DEBUG
defined on atreus (x86_64). Minimally checked that it doesn't introduce upset
elsewhere (i386).

[originally from svn r8380]
This commit is contained in:
Jacob Nevins 2009-01-04 22:24:08 +00:00
parent 6b5f874552
commit 81287fb7ad

2
misc.c
View File

@ -605,7 +605,7 @@ void debug_memdump(void *buf, int len, int L)
if (L) {
int delta;
debug_printf("\t%d (0x%x) bytes:\n", len, len);
delta = 15 & (int) p;
delta = 15 & (unsigned long int) p;
p -= delta;
len += delta;
}