Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/wsfontload avoid sign compare error
details: https://anonhg.NetBSD.org/src/rev/2967a08e4a8e
branches: trunk
changeset: 354649:2967a08e4a8e
user: macallan <macallan%NetBSD.org@localhost>
date: Fri Jun 23 17:40:15 2017 +0000
description:
avoid sign compare error
diffstat:
usr.sbin/wsfontload/wsfontload.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 7304a97fbb71 -r 2967a08e4a8e usr.sbin/wsfontload/wsfontload.c
--- a/usr.sbin/wsfontload/wsfontload.c Fri Jun 23 15:29:21 2017 +0000
+++ b/usr.sbin/wsfontload/wsfontload.c Fri Jun 23 17:40:15 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: wsfontload.c,v 1.19 2017/06/23 02:16:39 macallan Exp $ */
+/* $NetBSD: wsfontload.c,v 1.20 2017/06/23 17:40:15 macallan Exp $ */
/*
* Copyright (c) 1999
@@ -209,7 +209,7 @@
f.stride = (f.fontwidth + 7) / 8;
len = f.fontheight * f.numchars * f.stride;
if (fstat(ffd, &st) == 0) {
- if (len != st.st_size) {
+ if ((off_t)len != st.st_size) {
uint32_t foo = 0;
char b[65];
len = st.st_size;
Home |
Main Index |
Thread Index |
Old Index