зеркало из https://github.com/github/putty.git
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:
Родитель
6b5f874552
Коммит
81287fb7ad
2
misc.c
2
misc.c
|
@ -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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче