Mercurial > hg > xemacs-beta
comparison src/print.c @ 5295:2474dce7304e
Make sure (format "%b" 0) is non-zero length, print.c
src/ChangeLog addition:
2010-10-25 Aidan Kehoe <kehoea@parhasard.net>
* print.c (ulong_to_bit_string): If printing zero, actually print
a zero, don't return the empty string.
tests/ChangeLog addition:
2010-10-25 Aidan Kehoe <kehoea@parhasard.net>
* automated/lisp-tests.el:
Test format strings with %b, too.
author | Aidan Kehoe <kehoea@parhasard.net> |
---|---|
date | Mon, 25 Oct 2010 13:15:53 +0100 |
parents | 808131ba4a57 |
children | b9167d522a9a |
comparison
equal
deleted
inserted
replaced
5294:bbff29a01820 | 5295:2474dce7304e |
---|---|
1337 { | 1337 { |
1338 *p++ = '0'; | 1338 *p++ = '0'; |
1339 } | 1339 } |
1340 } | 1340 } |
1341 } | 1341 } |
1342 | |
1343 if (!seen_high_order) | |
1344 { | |
1345 *p++ = '0'; | |
1346 } | |
1347 | |
1342 *p = '\0'; | 1348 *p = '\0'; |
1343 } | 1349 } |
1344 | 1350 |
1345 static void | 1351 static void |
1346 print_vector_internal (const char *start, const char *end, | 1352 print_vector_internal (const char *start, const char *end, |