diff options
author | Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> | 2011-02-13 17:58:15 +0100 |
---|---|---|
committer | Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> | 2011-02-13 17:59:28 +0100 |
commit | bd0bc9c9f9aff4204de100a8563e8f3830b42dfe (patch) | |
tree | 37094505053b5fd55ff18ccc9ad5a23eb256b167 /i18npool | |
parent | c26e1670697f3ab1c2808224a4e3490ef50f488e (diff) |
WaE variable types in fprintf, specify expected type/add casting
Diffstat (limited to 'i18npool')
-rw-r--r-- | i18npool/source/breakiterator/gendict.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/i18npool/source/breakiterator/gendict.cxx b/i18npool/source/breakiterator/gendict.cxx index 7bbf39891adc..ab181be73836 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); } |