Date: prev next · Thread: first prev next last
2012 Archives by date, by thread · List index


On Wed, Mar 28, 2012 at 8:12 AM, Tor Lillqvist <tml@iki.fi> wrote:
The patch below seems to help. OK to commit? I'm looking at you, Stephan;)

--tml

diff --git a/codemaker/source/javamaker/javatype.cxx
b/codemaker/source/javamaker/javatype.cxx
index 1453122..f297980 100644
--- a/codemaker/source/javamaker/javatype.cxx
+++ b/codemaker/source/javamaker/javatype.cxx
@@ -2447,7 +2447,10 @@ void addConstant(
                rtl::OString(
                    RTL_CONSTASCII_STRINGPARAM("Bad type
information"))); //TODO
        }
-        valueIndex = classFile->addIntegerInfo(fieldValue.m_value.aByte);
+        if (fieldValue.m_value.aByte < 0x80)

^^^
doesn't
valueindex = classFile->addIntegerInfo((sal_Int8)fieldValue.m_mvalue.aByte))
enough ?

Norbert

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.