about summary refs log tree commit diff
path: root/ports/sysdeps
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2012-11-05 13:38:40 +0000
committerJoseph Myers <joseph@codesourcery.com>2012-11-05 13:38:40 +0000
commitacfa885ff15833047b5bba0ce51be3c84fbd9719 (patch)
tree9161d765e971c119c283587861c24e5950737249 /ports/sysdeps
parent99252c8c6256d1afe91651d334cbef402d529fa5 (diff)
downloadglibc-acfa885ff15833047b5bba0ce51be3c84fbd9719.tar.gz
glibc-acfa885ff15833047b5bba0ce51be3c84fbd9719.tar.xz
glibc-acfa885ff15833047b5bba0ce51be3c84fbd9719.zip
Fix types of FE_DFL_ENV and FE_NOMASK_ENV (bug 14805).
Diffstat (limited to 'ports/sysdeps')
-rw-r--r--ports/sysdeps/arm/bits/fenv.h2
-rw-r--r--ports/sysdeps/hppa/fpu/bits/fenv.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/ports/sysdeps/arm/bits/fenv.h b/ports/sysdeps/arm/bits/fenv.h
index 6788e288af..bc4a3ee533 100644
--- a/ports/sysdeps/arm/bits/fenv.h
+++ b/ports/sysdeps/arm/bits/fenv.h
@@ -74,7 +74,7 @@ typedef struct
 fenv_t;
 
 /* If the default argument is used we use this value.  */
-#define FE_DFL_ENV	((fenv_t *) -1l)
+#define FE_DFL_ENV	((const fenv_t *) -1l)
 
 #ifdef __USE_GNU
 /* Floating-point environment where none of the exceptions are masked.  */
diff --git a/ports/sysdeps/hppa/fpu/bits/fenv.h b/ports/sysdeps/hppa/fpu/bits/fenv.h
index 0618b1bb84..49e30185af 100644
--- a/ports/sysdeps/hppa/fpu/bits/fenv.h
+++ b/ports/sysdeps/hppa/fpu/bits/fenv.h
@@ -83,9 +83,9 @@ typedef struct
 } fenv_t;
 
 /* If the default argument is used we use this value.  */
-#define FE_DFL_ENV ((fenv_t *) -1)
+#define FE_DFL_ENV ((const fenv_t *) -1)
 
 #ifdef __USE_GNU
 /* Floating-point environment where none of the exceptions are masked.  */
-# define FE_NOMASK_ENV	((fenv_t *) -2)
+# define FE_NOMASK_ENV	((const fenv_t *) -2)
 #endif