summaryrefslogtreecommitdiff
path: root/bitmap.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2022-09-16 15:58:21 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2022-09-16 16:22:37 -0700
commit949da2db3e9357d8256863475a8c63409a8fc7b9 (patch)
tree6b74ae79927121ac24d012845fe4da67e739df1e /bitmap.c
parentc0fb322b8d53e3f9fdffbba8c733c78ff3d50c85 (diff)
Fix -Wsign-compare warnings
atom.c: In function ‘MakeAtom’: atom.c:161:65: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (hashTable[h]->hash == hash && hashTable[h]->len == len && ^~ atom.c:172:69: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (hashTable[h]->hash == hash && hashTable[h]->len == len && ^~ atom.c:207:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (reverseMapSize <= a->atom) { ^~ bitmap.c: In function ‘bitmapGetMetrics’: bitmap.c:154:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i < *glyphCount; i++) { ^ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'bitmap.c')
-rw-r--r--bitmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitmap.c b/bitmap.c
index 5073782..bd2f0a2 100644
--- a/bitmap.c
+++ b/bitmap.c
@@ -151,7 +151,7 @@ bitmapGetMetrics(FontPtr pFont, unsigned long count, unsigned char *chars,
CharInfoPtr metrics = bitmapFont->metrics;
xCharInfo *ink_metrics = bitmapFont->ink_metrics;
- for (int i = 0; i < *glyphCount; i++) {
+ for (unsigned long i = 0; i < *glyphCount; i++) {
if (glyphs[i] != (xCharInfo *) & nonExistantChar)
glyphs[i] =
ink_metrics + (((CharInfoPtr) glyphs[i]) - metrics);