diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2010-05-22 16:46:59 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2010-05-22 16:46:59 +0000 |
commit | eb5cd5b8b9cb8eea3166cc1ccffff54b5bd5e003 (patch) | |
tree | 1a0f08815928c57c7447f5ccc66d85b5e7d38bd1 /cpukit/libfs | |
parent | 2010-05-22 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-eb5cd5b8b9cb8eea3166cc1ccffff54b5bd5e003.tar.bz2 |
2010-05-22 Ralf Corsépius <ralf.corsepius@rtems.org>
* libfs/src/rfs/rtems-rfs-bitmaps-ut.c: Use "16 bit int" arg
in call to srand if "32 bit int" doesn't fit into "int".
Diffstat (limited to 'cpukit/libfs')
-rw-r--r-- | cpukit/libfs/src/rfs/rtems-rfs-bitmaps-ut.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cpukit/libfs/src/rfs/rtems-rfs-bitmaps-ut.c b/cpukit/libfs/src/rfs/rtems-rfs-bitmaps-ut.c index d701a9d4a2..a169ad139c 100644 --- a/cpukit/libfs/src/rfs/rtems-rfs-bitmaps-ut.c +++ b/cpukit/libfs/src/rfs/rtems-rfs-bitmaps-ut.c @@ -385,7 +385,11 @@ rtems_rfs_bitmap_unit_test (void) printf (" Bit clear value : %d\n", RTEMS_RFS_BITMAP_BIT_CLEAR); printf (" Num bit per element : %zd\n", rtems_rfs_bitmap_element_bits ()); - srand (0x23984237UL); +#if INT_MAX >= 0x23984237 + srand (0x23984237); +#else + srand (0x2398); +#endif rtems_rfs_bitmap_ut_test_bitmap (2048); rtems_rfs_bitmap_ut_test_bitmap (420); |