POSIX math: FP_ROUND, not FE_ROUND.
authorJarkko Hietaniemi <jhi@iki.fi>
Fri, 26 Sep 2014 02:11:16 +0000 (22:11 -0400)
committerJarkko Hietaniemi <jhi@iki.fi>
Fri, 26 Sep 2014 14:42:42 +0000 (10:42 -0400)
ext/POSIX/POSIX.xs

index 723f1bb..b9f3231 100644 (file)
@@ -806,7 +806,7 @@ static int my_fegetround()
   case FP_RN: return FE_TONEAREST;
   case FP_RZ: return FE_TOWARDZERO;
   case FP_RM: return FE_DOWNWARD;
-  case FE_RP: return FE_UPWARD;
+  case FP_RP: return FE_UPWARD;
   default: return -1;
   }
 #elif defined(FLT_ROUNDS)