summaryrefslogtreecommitdiffstats
path: root/src/file_pdf.c
diff options
context:
space:
mode:
authorChristophe Grenier <[email protected]>2014-11-15 12:29:48 +0100
committerChristophe Grenier <[email protected]>2014-11-15 12:29:48 +0100
commit5ed8822f2b3cc95bf7f9bda45bf7b57e8a693f6d (patch)
tree69fd55db22dbc9b3d4d7ebc6aba46203a9c82b0e /src/file_pdf.c
parent17040353bc6dc9d3ac701037fe90ce69382fb49f (diff)
Turn off various signed/unsigned comparaison warnings
Diffstat (limited to 'src/file_pdf.c')
-rw-r--r--src/file_pdf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/file_pdf.c b/src/file_pdf.c
index 509b0a13..c48d455b 100644
--- a/src/file_pdf.c
+++ b/src/file_pdf.c
@@ -72,7 +72,7 @@ static void file_rename_pdf(const char *old_filename)
unsigned char*buffer;
unsigned int i;
unsigned int j;
- int bsize;
+ size_t bsize;
const unsigned char utf16[3]= { 0xfe, 0xff, 0x00};
if((handle=fopen(old_filename, "rb"))==NULL)
return;
@@ -129,7 +129,7 @@ static void file_rename_pdf(const char *old_filename)
}
if(buffer[i]=='<')
{
- int s=i;
+ unsigned int s=i;
/* hexa to ascii */
j=s;
buffer[j++]='(';