]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Fix pow function.
authorUlrich Drepper <drepper@redhat.com>
Thu, 7 May 1998 12:04:51 +0000 (12:04 +0000)
committerUlrich Drepper <drepper@redhat.com>
Thu, 7 May 1998 12:04:51 +0000 (12:04 +0000)
sysdeps/i386/fpu/__math.h

index ecd1d16482d06df74ea923b8b1917f3a5601f43a..1bb926603f836c4f4cc64302a4c61738113b4026 100644 (file)
@@ -294,7 +294,7 @@ __MATH_INLINE double
 pow (double __x, double __y)
 {
   register double __value, __exponent;
-  long __p = (long) __y;
+  long long int __p = (long long int) __y;
 
   if (__x == 0.0 && __y > 0.0)
     return 0.0;
@@ -494,7 +494,7 @@ __MATH_INLINE double
 pow2 (double __x)
 {
   register double __value, __exponent;
-  long __p = (long) __x;
+  int __p = (int) __x;
 
   if (__x == (double) __p)
     return ldexp (1.0, __p);