RESOLVED FIXED 111562
[Qt] Illegal narrowing in tst_qwebhistory
https://bugs.webkit.org/show_bug.cgi?id=111562
Summary [Qt] Illegal narrowing in tst_qwebhistory
Allan Sandfeld Jensen
Reported 2013-03-06 05:13:11 PST
The bytearray in tst_QWebHistory::restoreIncompatibleVersion1 has integer values higher than 127 assigned into an array of signed chars. This works correctly but causes compiler errors in C++11 since it assigns constants (>127) that doesn't fit the destination (-128 to 127).
Attachments
Patch (2.51 KB, patch)
2013-03-06 05:15 PST, Allan Sandfeld Jensen
jturcotte: review+
Allan Sandfeld Jensen
Comment 1 2013-03-06 05:15:06 PST
Jocelyn Turcotte
Comment 2 2013-03-06 05:32:34 PST
Comment on attachment 191722 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=191722&action=review Oops > Source/WebKit/qt/tests/qwebhistory/tst_qwebhistory.cpp:517 > + QByteArray version1((const char*)version1Dump, sizeof(version1Dump)); Nit: static_cast
Allan Sandfeld Jensen
Comment 3 2013-03-06 06:31:27 PST
Note You need to log in before you can comment on or make changes to this bug.