about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2006-01-06 12:15:49 +0000
committerRoland McGrath <roland@gnu.org>2006-01-06 12:15:49 +0000
commit4aa019cb004e881db7bdc21d00d1ac5199e03bbb (patch)
tree8137b113e6dd68f03ca2e3347c239d1d1f2b497e
parentd15b99ac5af661dba1303f17a01f09aae7b6f5e7 (diff)
downloadglibc-4aa019cb004e881db7bdc21d00d1ac5199e03bbb.tar.gz
glibc-4aa019cb004e881db7bdc21d00d1ac5199e03bbb.tar.xz
glibc-4aa019cb004e881db7bdc21d00d1ac5199e03bbb.zip
* sysdeps/wordsize-32/divdi3.c (__moddi3): Add a cast.
-rw-r--r--ChangeLog2
-rw-r--r--sysdeps/wordsize-32/divdi3.c6
2 files changed, 5 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index cc4a369756..2d7275debf 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2006-01-06  Roland McGrath  <roland@redhat.com>
 
+	* sysdeps/wordsize-32/divdi3.c (__moddi3): Add a cast.
+
 	* io/fcntl.h [__USE_ATFILE] (AT_EACCESS): New macro.
 	* posix/unistd.h [__USE_ATFILE]: Declare faccessat.
 	* io/faccessat.c: New file.
diff --git a/sysdeps/wordsize-32/divdi3.c b/sysdeps/wordsize-32/divdi3.c
index 94fb008f1f..8fa6343841 100644
--- a/sysdeps/wordsize-32/divdi3.c
+++ b/sysdeps/wordsize-32/divdi3.c
@@ -1,6 +1,6 @@
 /* 64-bit multiplication and division
-   Copyright (C) 1989, 1992-1999, 2000, 2001, 2002, 2003, 2004
-   Free Software Foundation, Inc.
+   Copyright (C) 1989, 1992-1999,2000,2001,2002,2003,2004,2005
+	Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -309,7 +309,7 @@ __moddi3 (DWtype u, DWtype v)
     }
   if (v < 0)
     v = -v;
-  __udivmoddi4 (u, v, &w);
+  __udivmoddi4 (u, v, (UDWtype *) &w);
   if (c)
     w = -w;
   return w;