change log for rtems (2011-10-18)

rtems-vc at rtems.org rtems-vc at rtems.org
Tue Oct 18 14:11:28 UTC 2011


 *ralf*:
2011-10-18	Ralf Corsépius <ralf.corsepius at rtems.org>

	* fileio/init.c: Explictly consts in size_t initializers
	(avoid overflows on 16bit-int targets).

M  1.198  testsuites/samples/ChangeLog
M   1.36  testsuites/samples/fileio/init.c

diff -u rtems/testsuites/samples/ChangeLog:1.197 rtems/testsuites/samples/ChangeLog:1.198
--- rtems/testsuites/samples/ChangeLog:1.197	Fri Oct  7 04:39:53 2011
+++ rtems/testsuites/samples/ChangeLog	Tue Oct 18 08:36:37 2011
@@ -1,3 +1,8 @@
+2011-10-18	Ralf Corsépius <ralf.corsepius at rtems.org>
+
+	* fileio/init.c: Explictly consts in size_t initializers
+	(avoid overflows on 16bit-int targets).
+
 2011-10-07	Ralf Corsépius <ralf.corsepius at rtems.org>
 
 	* capture/init.c: Declare notification only if being used.

diff -u rtems/testsuites/samples/fileio/init.c:1.35 rtems/testsuites/samples/fileio/init.c:1.36
--- rtems/testsuites/samples/fileio/init.c:1.35	Fri Sep 16 04:23:19 2011
+++ rtems/testsuites/samples/fileio/init.c	Tue Oct 18 08:36:37 2011
@@ -92,7 +92,7 @@
   {
     flags:  0,
     base:   0,
-    size:   1 * 1024 * 1024,
+    size:   (size_t) 1024 * 1024,
     nv_ops: &rtems_nvdisk_sram_handlers
   }
 };
@@ -424,7 +424,7 @@
   switch (arg[strlen (arg) - 1])
   {
     case 'M':
-      scalar = 1000 * 1024;
+      scalar = (size_t) 1000 * 1024;
       break;
     case 'm':
       scalar = 1000000;



--

Generated by Deluxe Loginfo [http://www.codewiz.org/projects/index.html#loginfo] 2.122 by Bernardo Innocenti <bernie at develer.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/vc/attachments/20111018/a1a7d7b8/attachment-0001.html>


More information about the vc mailing list