fmt_long did not count the '-'
This commit is contained in:
parent
54c76b18f7
commit
a7360d9385
4
CHANGES
4
CHANGES
@ -1,3 +1,7 @@
|
||||
0.11:
|
||||
fix fmt_long (didn't count the '-'), which in turn broke
|
||||
buffer_putlong
|
||||
|
||||
0.10:
|
||||
add comment to stralloc.h that explains the structure (Markus Brischke)
|
||||
fix socket routines (two cut-and-paste errors)
|
||||
|
@ -3,7 +3,7 @@
|
||||
unsigned int fmt_long(char *dest,long int i) {
|
||||
if (i<0) {
|
||||
if (dest) *dest='-';
|
||||
return fmt_ulong(dest+1,-i);
|
||||
return fmt_ulong(dest+1,-i)+1;
|
||||
} else
|
||||
return fmt_ulong(dest,i);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user