[Libreoffice-commits] .: i18npool/source

Christian Lohmaier cloph at kemper.freedesktop.org
Sun Feb 13 08:55:19 PST 2011


 i18npool/source/breakiterator/gendict.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit dae7bedd9a0da0a650f4cfefe05fec7e73389e40
Author: Christian Lohmaier <lohmaier+LibreOffice at googlemail.com>
Date:   Sun Feb 13 17:58:15 2011 +0100

    WaE variable types in fprintf, specify expected type/add casting

diff --git a/i18npool/source/breakiterator/gendict.cxx b/i18npool/source/breakiterator/gendict.cxx
index 974ca02..e21d899 100644
--- a/i18npool/source/breakiterator/gendict.cxx
+++ b/i18npool/source/breakiterator/gendict.cxx
@@ -135,7 +135,7 @@ static inline void printLenArray(FILE* source_fp, const vector<sal_uInt32>& lenA
         if( !(k & 0xf) )
             fputs("\n\t", source_fp);
 
-        fprintf(source_fp, "0x%x, ", lenArray[k]);
+        fprintf(source_fp, "0x%lx, ", static_cast<long unsigned int>(lenArray[k]));
     }
     fputs("\n};\n", source_fp );
 }
@@ -172,7 +172,7 @@ static inline void printIndex2(FILE *source_fp, sal_Int16 *set)
                         k++;
 
                 prev = charArray[(i<<8) + j];
-                fprintf(source_fp, "0x%x, ",(k < 0x10000 ? charArray[k] + 1 : 0));
+                fprintf(source_fp, "0x%lx, ", static_cast<long unsigned int>(k < 0x10000 ? charArray[k] + 1 : 0));
                 if ((j & 0x0f) == 0x0f)
                     fputs ("\n\t", source_fp);
             }


More information about the Libreoffice-commits mailing list