about summary refs log tree commit diff
path: root/sysdeps/powerpc/fpu/fesetround.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/powerpc/fpu/fesetround.c')
-rw-r--r--sysdeps/powerpc/fpu/fesetround.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/powerpc/fpu/fesetround.c b/sysdeps/powerpc/fpu/fesetround.c
index 875c89768a..016f8e008d 100644
--- a/sysdeps/powerpc/fpu/fesetround.c
+++ b/sysdeps/powerpc/fpu/fesetround.c
@@ -26,7 +26,7 @@ fesetround (int round)
   fenv_union_t u;
 
   if ((unsigned int) round > 3)
-    return 0;
+    return 1;
 
   /* Get the current state.  */
   u.fenv = fegetenv_register ();
@@ -37,5 +37,5 @@ fesetround (int round)
   /* Put the new state in effect.  */
   fesetenv_register (u.fenv);
 
-  return 1;
+  return 0;
 }