]> pd.if.org Git - pdclib/blobdiff - functions/stdlib/rand.c
Merged branch stdio_rewrite back into trunk.
[pdclib] / functions / stdlib / rand.c
index b4d01de8db5a056ed4157a7b03c7544d1b17cc4f..40d782448421c4e1201fe31b7dd97aff3c16d94c 100644 (file)
@@ -13,7 +13,7 @@
 int rand( void )
 {
     _PDCLIB_seed = _PDCLIB_seed * 1103515245 + 12345;
-    return (unsigned int) ( _PDCLIB_seed / 65536 ) % 32768;
+    return (int)( _PDCLIB_seed / 65536 ) % 32768;
 }
 
 #endif