summaryrefslogtreecommitdiff
path: root/source/fitz/string.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2017-10-25 16:21:23 +0200
committerTor Andersson <tor.andersson@artifex.com>2017-11-01 11:28:51 +0100
commit2910531c99e80bede06d2f1460459e8f6ce79961 (patch)
tree53e00ae90b6b297f890cbdd313fc0e02438c44ce /source/fitz/string.c
parentce8520963dbf8931b08c691a2740ec604cd1c01a (diff)
downloadmupdf-2910531c99e80bede06d2f1460459e8f6ce79961.tar.xz
Don't use 'long' needlessly.
Diffstat (limited to 'source/fitz/string.c')
-rw-r--r--source/fitz/string.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/fitz/string.c b/source/fitz/string.c
index 9872d114..e3c62d02 100644
--- a/source/fitz/string.c
+++ b/source/fitz/string.c
@@ -287,7 +287,7 @@ int
fz_chartorune(int *rune, const char *str)
{
int c, c1, c2, c3;
- long l;
+ int l;
/*
* one character sequence
@@ -362,7 +362,7 @@ int
fz_runetochar(char *str, int rune)
{
/* Runes are signed, so convert to unsigned for range check. */
- unsigned long c = (unsigned long)rune;
+ unsigned int c = (unsigned int)rune;
/*
* one character sequence