about summary refs log tree commit diff
path: root/sysdeps/ia64/fpu/fesetenv.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/ia64/fpu/fesetenv.c')
-rw-r--r--sysdeps/ia64/fpu/fesetenv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/ia64/fpu/fesetenv.c b/sysdeps/ia64/fpu/fesetenv.c
index b1209ca34e..79651ea1ce 100644
--- a/sysdeps/ia64/fpu/fesetenv.c
+++ b/sysdeps/ia64/fpu/fesetenv.c
@@ -30,8 +30,8 @@ fesetenv (const fenv_t *envp)
      Magic encoding of default values: bit 62+63 set (which will never
      happen for a user-space address) means it's not indirect.
   */
-  if (((unsigned long int) envp >> 62) == 0x03)
-    env = (unsigned long int) envp & 0x3fffffffffffffff;
+  if (((fenv_t) envp >> 62) == 0x03)
+    env = (fenv_t) envp & 0x3fffffffffffffff;
   else
     env = *envp;