summaryrefslogtreecommitdiff
path: root/plugins/AdvaImg
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/AdvaImg')
-rw-r--r--plugins/AdvaImg/src/FreeImage/PluginGIF.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/plugins/AdvaImg/src/FreeImage/PluginGIF.cpp b/plugins/AdvaImg/src/FreeImage/PluginGIF.cpp
index 0153959ab8..ba67bc960b 100644
--- a/plugins/AdvaImg/src/FreeImage/PluginGIF.cpp
+++ b/plugins/AdvaImg/src/FreeImage/PluginGIF.cpp
@@ -42,7 +42,6 @@
// Constant/Typedef declarations
// ==========================================================
-
struct GIFinfo {
BOOL read;
//only really used when reading
@@ -1015,19 +1014,19 @@ Load(FreeImageIO *io, fi_handle handle, int page, int flags, void *data) {
}
FreeImage_SetMetadataEx(FIMD_ANIMATION, dib, "Loop", ANIMTAG_LOOP, FIDT_LONG, 1, 4, &loop);
- //Comment Extension
- for( idx = 0; idx < info->comment_extension_offsets.size(); idx++ ) {
+ // Comment Extension
+ for (idx = 0; idx < info->comment_extension_offsets.size(); idx++) {
io->seek_proc(handle, (long)info->comment_extension_offsets[idx], SEEK_SET);
std::string comment;
char buf[255];
io->read_proc(&b, 1, 1, handle);
- while( b ) {
+ while (b) {
io->read_proc(buf, b, 1, handle);
comment.append(buf, b);
io->read_proc(&b, 1, 1, handle);
}
comment.append(1, '\0');
- sprintf(buf, "Comment%d", idx);
+ sprintf(buf, "Comment%d", (int)idx);
DWORD comment_size = (DWORD)comment.size();
FreeImage_SetMetadataEx(FIMD_COMMENTS, dib, buf, 1, FIDT_ASCII, comment_size, comment_size, comment.c_str());
}