fix various bugs for sunos

This commit is contained in:
rsc 2004-04-20 00:54:58 +00:00
parent 20b33daf59
commit 929ba9b98f
6 changed files with 13 additions and 13 deletions

View file

@ -18,9 +18,9 @@ ieeeftoa64(char *buf, uint n, u32int h, u32int l)
return 0;
if(h & (1L<<31)){
if(h & (1UL<<31)){
*buf++ = '-';
h &= ~(1L<<31);
h &= ~(1UL<<31);
}else
*buf++ = ' ';
n--;
@ -55,9 +55,9 @@ ieeeftoa32(char *buf, uint n, u32int h)
if (n <= 0)
return 0;
if(h & (1L<<31)){
if(h & (1UL<<31)){
*buf++ = '-';
h &= ~(1L<<31);
h &= ~(1UL<<31);
}else
*buf++ = ' ';
n--;