From a704d94a8640a9e5291e33d47f6f528f569d18c9 Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Tue, 20 Jun 2000 18:34:57 +0000 Subject: Tue Jun 20 14:30:00 2000 Jeff Johnston * libc/include/sys/reent.h (_rand_next): Added __extension__ qualifier as long long type is not strict ANSI. * libc/stdlib/rand.c (rand): Added __extension__ qualifier to long long constant. --- newlib/libc/stdlib/rand.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'newlib/libc/stdlib') diff --git a/newlib/libc/stdlib/rand.c b/newlib/libc/stdlib/rand.c index 4cf7f2932..a085ef37c 100644 --- a/newlib/libc/stdlib/rand.c +++ b/newlib/libc/stdlib/rand.c @@ -82,7 +82,7 @@ _DEFUN_VOID (rand) Computer Programming," Vol 2, Seminumerical Algorithms, Third Edition, Addison-Wesley, 1998, p. 106 (line 26) & p. 108 */ _REENT->_new._reent._rand_next = - _REENT->_new._reent._rand_next * 6364136223846793005LL + 1; + _REENT->_new._reent._rand_next * __extension__ 6364136223846793005LL + 1; return (int)((_REENT->_new._reent._rand_next >> 32) & RAND_MAX); } -- cgit v1.2.3