diff --git a/writerfilter/source/doctok/WW8CpAndFc.cxx b/writerfilter/source/doctok/WW8CpAndFc.cxx index 1714a55339be..796edba69ac0 100644 --- a/writerfilter/source/doctok/WW8CpAndFc.cxx +++ b/writerfilter/source/doctok/WW8CpAndFc.cxx @@ -4,9 +4,9 @@ * * $RCSfile: WW8CpAndFc.cxx,v $ * - * $Revision: 1.4 $ + * $Revision: 1.5 $ * - * last change: $Author: obo $ $Date: 2008-01-10 11:45:39 $ + * last change: $Author: vg $ $Date: 2008-01-24 15:57:34 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -59,7 +59,7 @@ string Cp::toString() const { char sBuffer[256]; - snprintf(sBuffer, 255, "%lx", get()); + snprintf(sBuffer, 255, "%" SAL_PRIxUINT32 "", get()); return string(sBuffer); } @@ -83,7 +83,7 @@ string Fc::toString() const { char sBuffer[256]; - snprintf(sBuffer, 255, "(%lx, %s)", static_cast(get()), + snprintf(sBuffer, 255, "(%" SAL_PRIxUINT32 ", %s)", static_cast(get()), isComplex() ? "true" : "false"); return string(sBuffer); @@ -124,7 +124,7 @@ ostream & operator << (ostream & o, const CpAndFcs & rCpAndFcs) char sBuffer[256]; - snprintf(sBuffer, 255, "%d", rCpAndFcs.size()); + snprintf(sBuffer, 255, "%" SAL_PRI_SIZET "u", rCpAndFcs.size()); o << sBuffer; return o; diff --git a/writerfilter/source/doctok/WW8FKPImpl.cxx b/writerfilter/source/doctok/WW8FKPImpl.cxx index ed73fc8bf4d5..8284c37ef34a 100644 --- a/writerfilter/source/doctok/WW8FKPImpl.cxx +++ b/writerfilter/source/doctok/WW8FKPImpl.cxx @@ -4,9 +4,9 @@ * * $RCSfile: WW8FKPImpl.cxx,v $ * - * $Revision: 1.4 $ + * $Revision: 1.5 $ * - * last change: $Author: obo $ $Date: 2008-01-10 11:46:44 $ + * last change: $Author: vg $ $Date: 2008-01-24 15:57:48 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -113,7 +113,7 @@ void WW8CHPFKPImpl::dump(OutputWithDepth & o) const char sBuffer[256]; snprintf(sBuffer, sizeof(sBuffer), - "", + "", getFc(n).get(), 2 * getU8(getRgb() + n)); o.addItem(sBuffer); @@ -177,7 +177,7 @@ void WW8PAPFKPImpl::dump(OutputWithDepth & o) const char sBuffer[256]; snprintf(sBuffer, sizeof(sBuffer), - "", + "", getFc(n).get(), 2 * getU8(getRgb() + n * 13)); o.addItem(sBuffer);