aboutsummaryrefslogtreecommitdiff
path: root/src/libmach/ieee.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libmach/ieee.c')
-rw-r--r--src/libmach/ieee.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libmach/ieee.c b/src/libmach/ieee.c
index 0d756d21..27bc3ab1 100644
--- a/src/libmach/ieee.c
+++ b/src/libmach/ieee.c
@@ -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--;