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".
This commit is contained in:
Ralf Corsepius
2010-05-22 16:46:59 +00:00
parent b5926be790
commit eb5cd5b8b9
2 changed files with 10 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
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".
2010-05-22 Ralf Corsépius <ralf.corsepius@rtems.org>
* libblock/src/flashdisk.c, libblock/src/nvdisk.c:

View File

@@ -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);