Mercurial > emacs
comparison lib-src/hexl.c @ 19338:653a7898590b
(main): Use %08lx instead of %08x in printf because the
variable named addresses is long.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Wed, 13 Aug 1997 15:35:01 +0000 |
parents | 0a93a0afdd74 |
children | 4a529ce5a52e |
comparison
equal
deleted
inserted
replaced
19337:bd0dd246f9cd | 19338:653a7898590b |
---|---|
219 string[i+1] = '\0'; | 219 string[i+1] = '\0'; |
220 } | 220 } |
221 else | 221 else |
222 { | 222 { |
223 if (!i) | 223 if (!i) |
224 printf ("%08x: ", address); | 224 printf ("%08lx: ", address); |
225 | 225 |
226 if (iso_flag) | 226 if (iso_flag) |
227 string[i+1] = | 227 string[i+1] = |
228 (c < 0x20 || (c >= 0x7F && c < 0xa0)) ? '.' :c; | 228 (c < 0x20 || (c >= 0x7F && c < 0xa0)) ? '.' :c; |
229 else | 229 else |