From 736cd091e8207791672d2c89c9c92e8fe6ce72b6 Mon Sep 17 00:00:00 2001 From: ishmal Date: Sat, 29 Apr 2006 07:48:36 +0000 Subject: [PATCH] remove warnings --- src/extension/internal/odf.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/extension/internal/odf.cpp b/src/extension/internal/odf.cpp index 1487293bb..27804397d 100644 --- a/src/extension/internal/odf.cpp +++ b/src/extension/internal/odf.cpp @@ -1019,7 +1019,7 @@ OdfOutput::preprocess(ZipFile &zf, Inkscape::XML::Node *node) { char buf[64]; snprintf(buf, 63, "Pictures/image%d%s", - imageTable.size(), ext.c_str()); + (int)imageTable.size(), ext.c_str()); std::string newName = buf; imageTable[oldName] = newName; std::string comment = "old name was: "; @@ -1117,7 +1117,7 @@ OdfOutput::preprocess(ZipFile &zf, Inkscape::XML::Node *node) if (!gradientMatch) { char buf[16]; - snprintf(buf, 15, "gradient%d", gradientTable.size()); + snprintf(buf, 15, "gradient%d", (int)gradientTable.size()); std::string gradientName = buf; gi.name = gradientName; gradientTable.push_back(gi); @@ -1166,7 +1166,7 @@ OdfOutput::preprocess(ZipFile &zf, Inkscape::XML::Node *node) if (!styleMatch) { char buf[16]; - snprintf(buf, 15, "style%d", styleTable.size()); + snprintf(buf, 15, "style%d", (int)styleTable.size()); std::string styleName = buf; si.name = styleName; styleTable.push_back(si); -- 2.30.2