mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-10 01:48: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:
parent
6b5f874552
commit
81287fb7ad
2
misc.c
2
misc.c
@ -605,7 +605,7 @@ void debug_memdump(void *buf, int len, int L)
|
|||||||
if (L) {
|
if (L) {
|
||||||
int delta;
|
int delta;
|
||||||
debug_printf("\t%d (0x%x) bytes:\n", len, len);
|
debug_printf("\t%d (0x%x) bytes:\n", len, len);
|
||||||
delta = 15 & (int) p;
|
delta = 15 & (unsigned long int) p;
|
||||||
p -= delta;
|
p -= delta;
|
||||||
len += delta;
|
len += delta;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user