diff options
author | Michael Stahl <mstahl@redhat.com> | 2012-08-15 14:56:39 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2012-08-15 14:56:39 +0200 |
commit | 426f4c8dd1634cc4234f29c8e36b6379b68fe6e8 (patch) | |
tree | c1bbb70f548cb1ffc0646e1b96fb312020da37ae /sax/qa/cppunit/test_converter.cxx | |
parent | 8ea65d9f89b7dd8af839a0e6e952b09fe28bce10 (diff) |
sigh.. MSVC warning C4146: unary minus applied to unsigned type?
Change-Id: Ic2bbde637fd0a074f89b5ffa7af6e87d7cb408c5
Diffstat (limited to 'sax/qa/cppunit/test_converter.cxx')
-rw-r--r-- | sax/qa/cppunit/test_converter.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sax/qa/cppunit/test_converter.cxx b/sax/qa/cppunit/test_converter.cxx index 7fa29b0f7046..7becf74af56a 100644 --- a/sax/qa/cppunit/test_converter.cxx +++ b/sax/qa/cppunit/test_converter.cxx @@ -371,9 +371,9 @@ void ConverterTest::testMeasure() doTestStringToMeasure(555, "666", MeasureUnit::MM, -1000, 555); doTestStringToMeasure(-1000, "-1001", MeasureUnit::MM, -1000, 555); doTestStringToMeasure(0, "-0", MeasureUnit::MM, -1, 0); - doTestStringToMeasure(2147483647, "1234567890mm", MeasureUnit::MM_10TH, 12, ::std::numeric_limits<sal_Int32>::max()); + doTestStringToMeasure(::std::numeric_limits<sal_Int32>::max(), "1234567890mm", MeasureUnit::MM_10TH, 12, ::std::numeric_limits<sal_Int32>::max()); doTestStringToMeasure(-300, "-300", MeasureUnit::MM, -1000, 555); - doTestStringToMeasure(-2147483648, "-999999999999999px", MeasureUnit::PIXEL, ::std::numeric_limits<sal_Int32>::min(), 555); //really crazy numbers... + doTestStringToMeasure(::std::numeric_limits<sal_Int32>::min(), "-999999999999999px", MeasureUnit::PIXEL, ::std::numeric_limits<sal_Int32>::min(), 555); //really crazy numbers... doTestMeasureToString("6mm", 600, MeasureUnit::MM_100TH, MeasureUnit::MM); doTestMeasureToString("0.005cm", 000000005, MeasureUnit::MM_100TH, MeasureUnit::CM); // zeros in the front doesn't count |