Title: [160834] trunk/Source/WTF
- Revision
- 160834
- Author
- [email protected]
- Date
- 2013-12-19 09:11:35 -0800 (Thu, 19 Dec 2013)
Log Message
WTF fails to compile with gcc 4.8.2 and -Werror=array-bounds
https://bugs.webkit.org/show_bug.cgi?id=125936
Reviewed by Anders Carlsson.
* wtf/dtoa/double-conversion.cc: Use a unsigned instead of int on buffer_pos type.
Modified Paths
Diff
Modified: trunk/Source/WTF/ChangeLog (160833 => 160834)
--- trunk/Source/WTF/ChangeLog 2013-12-19 16:30:51 UTC (rev 160833)
+++ trunk/Source/WTF/ChangeLog 2013-12-19 17:11:35 UTC (rev 160834)
@@ -1,3 +1,12 @@
+2013-12-19 Hugo Parente Lima <[email protected]>
+
+ WTF fails to compile with gcc 4.8.2 and -Werror=array-bounds
+ https://bugs.webkit.org/show_bug.cgi?id=125936
+
+ Reviewed by Anders Carlsson.
+
+ * wtf/dtoa/double-conversion.cc: Use a unsigned instead of int on buffer_pos type.
+
2013-12-19 Peter Szanka <[email protected]>
Delete RVCT related code parts.
Modified: trunk/Source/WTF/wtf/dtoa/double-conversion.cc (160833 => 160834)
--- trunk/Source/WTF/wtf/dtoa/double-conversion.cc 2013-12-19 16:30:51 UTC (rev 160833)
+++ trunk/Source/WTF/wtf/dtoa/double-conversion.cc 2013-12-19 17:11:35 UTC (rev 160834)
@@ -446,7 +446,7 @@
// The longest form of simplified number is: "-<significant digits>.1eXXX\0".
const int kBufferSize = kMaxSignificantDigits + 10;
char buffer[kBufferSize]; // NOLINT: size is known at compile time.
- int buffer_pos = 0;
+ unsigned buffer_pos = 0;
// Exponent will be adjusted if insignificant digits of the integer part
// or insignificant leading zeros of the fractional part are dropped.
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes