projects
/
fw
/
pdclib
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merged branch stdio_rewrite back into trunk.
[fw/pdclib]
/
functions
/
stdlib
/
rand.c
diff --git
a/functions/stdlib/rand.c
b/functions/stdlib/rand.c
index b4d01de8db5a056ed4157a7b03c7544d1b17cc4f..40d782448421c4e1201fe31b7dd97aff3c16d94c 100644
(file)
--- a/
functions/stdlib/rand.c
+++ b/
functions/stdlib/rand.c
@@
-13,7
+13,7
@@
int rand( void )
{
_PDCLIB_seed = _PDCLIB_seed * 1103515245 + 12345;
int rand( void )
{
_PDCLIB_seed = _PDCLIB_seed * 1103515245 + 12345;
- return (
unsigned int)
( _PDCLIB_seed / 65536 ) % 32768;
+ return (
int)
( _PDCLIB_seed / 65536 ) % 32768;
}
#endif
}
#endif