fix various bugs for sunos
This commit is contained in:
parent
20b33daf59
commit
929ba9b98f
6 changed files with 13 additions and 13 deletions
|
|
@ -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--;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue