diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-09-03 11:04:28 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-09-03 11:04:28 +0200 |
commit | ea7ce8cf08521a7609d2ffc0969b1541fbbb9d0c (patch) | |
tree | 47b292344cbad73ae53ab97f1116fccd74737d2b /codemaker | |
parent | 3073c015e381c0801d3137295678fecd009bb204 (diff) |
Write integers as signed sal_Int32
...this was a regression introduced with
64b993e046f23baaacaff1572b7d2a816588b5ef "finish deprecation of
O(U)String::valueOf()" and it caused e.g. the value -0x100 of the enum member
css.i18n.TranliterationModules.IGNORE_MASK to be written as 4294967040 rather
than as -256. (Though the relevant code is dead ugly, for sure.)
Change-Id: Icb3d3365135bc2a07e438317b70abdf9d74d6d7a
Diffstat (limited to 'codemaker')
-rw-r--r-- | codemaker/source/codemaker/global.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/codemaker/source/codemaker/global.cxx b/codemaker/source/codemaker/global.cxx index 6516b175da8e..17c6feca6e3c 100644 --- a/codemaker/source/codemaker/global.cxx +++ b/codemaker/source/codemaker/global.cxx @@ -355,7 +355,7 @@ bool FileStream::write(void const * buffer, sal_uInt64 size) { FileStream &operator<<(FileStream& o, sal_uInt32 i) { sal_uInt64 writtenBytes; - OString s = OString::number(i); + OString s = OString::number((sal_Int32)i); osl_writeFile(o.m_file, s.getStr(), s.getLength() * sizeof(sal_Char), &writtenBytes); return o; } |