about summary refs log tree commit diff
path: root/stdlib/random_r.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2009-04-24 03:58:48 +0000
committerUlrich Drepper <drepper@redhat.com>2009-04-24 03:58:48 +0000
commitfe12c7984b6631cf5e7b66d97f51f4aa16fd821e (patch)
treeba483bd9d607eecea6a32758fff634caa76c441e /stdlib/random_r.c
parent3d855f75d211ff7b5961f2e0153dc8b3f125f4d7 (diff)
downloadglibc-fe12c7984b6631cf5e7b66d97f51f4aa16fd821e.tar.gz
glibc-fe12c7984b6631cf5e7b66d97f51f4aa16fd821e.tar.xz
glibc-fe12c7984b6631cf5e7b66d97f51f4aa16fd821e.zip
	* stdlib/random_r.c (__srandom_r): Change type of word to int32_t
	to get consistency between 32 and 64 bit architectures.
Diffstat (limited to 'stdlib/random_r.c')
-rw-r--r--stdlib/random_r.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/stdlib/random_r.c b/stdlib/random_r.c
index 5e564a737d..a30055f598 100644
--- a/stdlib/random_r.c
+++ b/stdlib/random_r.c
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1995, 2005 Free Software Foundation
+   Copyright (C) 1995, 2005, 2009 Free Software Foundation
 
    The GNU C Library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Lesser General Public
@@ -166,7 +166,7 @@ __srandom_r (seed, buf)
   int type;
   int32_t *state;
   long int i;
-  long int word;
+  int32_t word;
   int32_t *dst;
   int kc;