summaryrefslogtreecommitdiff
path: root/lib/libc/arch/powerpc/gen/fpsetmask.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/arch/powerpc/gen/fpsetmask.c')
-rw-r--r--lib/libc/arch/powerpc/gen/fpsetmask.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/arch/powerpc/gen/fpsetmask.c b/lib/libc/arch/powerpc/gen/fpsetmask.c
index 76329b1da31..6bcf62202c1 100644
--- a/lib/libc/arch/powerpc/gen/fpsetmask.c
+++ b/lib/libc/arch/powerpc/gen/fpsetmask.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fpsetmask.c,v 1.1 1999/07/23 03:16:27 rahnds Exp $ */
+/* $OpenBSD: fpsetmask.c,v 1.2 2006/03/31 04:23:36 drahn Exp $ */
/* $NetBSD: fpsetmask.c,v 1.1 1999/07/07 01:55:08 danw Exp $ */
/*
@@ -49,7 +49,7 @@ fpsetmask(mask)
__asm__ __volatile("mffs %0" : "=f"(fpscr));
old = (fpscr >> 3) & 0x1f;
- fpscr = (fpscr & 0xffffff07) | (mask << 3);
+ fpscr = (fpscr & 0xffffff07ULL) | (mask << 3);
__asm__ __volatile("mtfsf 0xff,%0" :: "f"(fpscr));
return (old);
}