about summary refs log tree commit diff
path: root/sysdeps/m68k/fpu/fesetround.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/m68k/fpu/fesetround.c')
-rw-r--r--sysdeps/m68k/fpu/fesetround.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/m68k/fpu/fesetround.c b/sysdeps/m68k/fpu/fesetround.c
index 8d5466c956..8e06a15f03 100644
--- a/sysdeps/m68k/fpu/fesetround.c
+++ b/sysdeps/m68k/fpu/fesetround.c
@@ -27,12 +27,12 @@ fesetround (int round)
 
   if (round & ~FE_UPWARD)
     /* ROUND is no valid rounding mode.  */
-    return 0;
+    return 1;
 
   __asm__ ("fmove%.l %!,%0" : "=dm" (fpcr));
   fpcr &= ~FE_UPWARD;
   fpcr |= round;
   __asm__ __volatile__ ("fmove%.l %0,%!" : : "dm" (fpcr));
 
-  return 1;
+  return 0;
 }