diff options
| author | Richard Brooksby | 2012-08-11 09:30:24 +0100 |
|---|---|---|
| committer | Richard Brooksby | 2012-08-11 09:30:24 +0100 |
| commit | 13ba70d2dd7c59ae7e3899010d9d9b35ae1c974c (patch) | |
| tree | e6c7944f1e259e1bbd168933116232390d59a9c5 /mps/code/testlib.c | |
| parent | d39d3bcf2d7740ddaa8700f96ba5d0127c349e76 (diff) | |
| download | emacs-13ba70d2dd7c59ae7e3899010d9d9b35ae1c974c.tar.gz emacs-13ba70d2dd7c59ae7e3899010d9d9b35ae1c974c.zip | |
Fixing warnings revealed by xcode (clang).
Copied from Perforce
Change: 178898
ServerID: perforce.ravenbrook.com
Diffstat (limited to 'mps/code/testlib.c')
| -rw-r--r-- | mps/code/testlib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mps/code/testlib.c b/mps/code/testlib.c index 027cbd2f9cd..d7f4bc60418 100644 --- a/mps/code/testlib.c +++ b/mps/code/testlib.c | |||
| @@ -258,7 +258,7 @@ void randomize(int argc, char **argv) | |||
| 258 | } else { | 258 | } else { |
| 259 | /* time_t uses an arbitrary encoding, but hopefully the low order */ | 259 | /* time_t uses an arbitrary encoding, but hopefully the low order */ |
| 260 | /* 31 bits will have at least one bit changed from run to run. */ | 260 | /* 31 bits will have at least one bit changed from run to run. */ |
| 261 | seedt = 1 + time(NULL) % (R_m - 1); | 261 | seedt = 1 + (unsigned long)time(NULL) % (R_m - 1); |
| 262 | 262 | ||
| 263 | /* The value returned by time() on some OSs may simply be a | 263 | /* The value returned by time() on some OSs may simply be a |
| 264 | * count of seconds: therefore successive runs may start with | 264 | * count of seconds: therefore successive runs may start with |