Bug 2085 - DCE build process crashes when using compiler flag for C++0x / C++11
authorHajime Tazaki <tazaki@sfc.wide.ad.jp>
Tue, 26 May 2015 19:32:49 +0900
changeset 664 e5932a2f38d7
parent 663 0ec2af479e18
child 665 bfc53812adec
Bug 2085 - DCE build process crashes when using compiler flag for C++0x / C++11
RELEASE_NOTES
test/test-stdio.cc
--- a/RELEASE_NOTES	Tue May 26 19:51:03 2015 +0900
+++ b/RELEASE_NOTES	Tue May 26 19:32:49 2015 +0900
@@ -26,7 +26,7 @@
 
 Bugs fixed
 ----------
--
+- Bug 2085 - DCE build process crashes when using compiler flag for C++0x / C++11
 
 
 Release dce-1.6
--- a/test/test-stdio.cc	Tue May 26 19:51:03 2015 +0900
+++ b/test/test-stdio.cc	Tue May 26 19:32:49 2015 +0900
@@ -65,8 +65,8 @@
 static void test_freadwrite (void)
 {
   char buffer[] = {
-    0xff, 0xfe, 0xfd, 0x00,
-    0x02, 0x05, 0x12, 0x15
+    static_cast<char>(0xff), static_cast<char>(0xfe), static_cast<char>(0xfd), static_cast<char>(0x00),
+    static_cast<char>(0x02), static_cast<char>(0x05), static_cast<char>(0x12), static_cast<char>(0x15)
   };
   int status;
   status = unlink ("X");
@@ -158,8 +158,8 @@
   unlink ("X");
   // let's write a file
   char buffer[] = {
-    0xff, 0xfe, 0xfd, 0x00,
-    0x02, 0x05, 0x12, 0x15
+    static_cast<char>(0xff), static_cast<char>(0xfe), static_cast<char>(0xfd), static_cast<char>(0x00),
+    static_cast<char>(0x02), static_cast<char>(0x05), static_cast<char>(0x12), static_cast<char>(0x15)
   };
   FILE *file;
   file = fopen ("X", "w+");