diff options
Diffstat (limited to 'libwpd/libwpd-0.9.4-msvc-warning.patch')
-rw-r--r-- | libwpd/libwpd-0.9.4-msvc-warning.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/libwpd/libwpd-0.9.4-msvc-warning.patch b/libwpd/libwpd-0.9.4-msvc-warning.patch new file mode 100644 index 000000000000..ebe29c748b8f --- /dev/null +++ b/libwpd/libwpd-0.9.4-msvc-warning.patch @@ -0,0 +1,24 @@ +MSVC warning C4310: cast truncates constant value + +diff -ru foo/UnpackedTarball/wpd/src/lib/WP3PageFormatGroup.cpp wpd_fix/src/lib/WP3PageFormatGroup.cpp +--- foo/UnpackedTarball/wpd/src/lib/WP3PageFormatGroup.cpp 2011-10-28 15:37:47.000000000 +0200 ++++ foo/UnpackedTarball/wpd_fix/src/lib/WP3PageFormatGroup.cpp 2012-09-10 15:09:06.222400000 +0200 +@@ -56,6 +56,7 @@ + { + // this group can contain different kinds of data, thus we need to read + // the contents accordingly ++ uint8_t tmpTmp = 0xff; + int8_t tmpTabType = 0; + double tmpTabPosition = 0.0; + WPXTabStop tmpTabStop = WPXTabStop(); +@@ -93,8 +94,9 @@ + + m_isRelative = (readU8(input, encryption) & 0x01); + +- while ((tmpTabType = (int8_t)readU8(input, encryption)) != (int8_t)0xff) ++ while ((tmpTmp = readU8(input, encryption)) != 0xff) + { ++ tmpTabType = (int8_t) tmpTmp; + if (input->atEOS()) + throw FileException(); + tmpTabPosition = fixedPointToDouble(readU32(input, encryption, true)) / 72.0; |