Module Name:    src
Committed By:   jakllsch
Date:           Sun Apr  6 19:25:22 UTC 2014

Modified Files:
        src/sys/fs: unicode.h

Log Message:
Use size_t instead of int for character count to avoid sign compare issues.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/sys/fs/unicode.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/fs/unicode.h
diff -u src/sys/fs/unicode.h:1.6 src/sys/fs/unicode.h:1.7
--- src/sys/fs/unicode.h:1.6	Mon Apr 28 20:24:02 2008
+++ src/sys/fs/unicode.h	Sun Apr  6 19:25:22 2014
@@ -1,4 +1,4 @@
-/* $NetBSD: unicode.h,v 1.6 2008/04/28 20:24:02 martin Exp $ */
+/* $NetBSD: unicode.h,v 1.7 2014/04/06 19:25:22 jakllsch Exp $ */
 
 /*-
  * Copyright (c) 2001, 2004 The NetBSD Foundation, Inc.
@@ -76,7 +76,7 @@ static int wput_utf8(char *, size_t, u_i
 static u_int16_t
 wget_utf8(const char **str, size_t *sz)
 {
-	int c;
+	size_t c;
 	u_int16_t rune = 0;
 	const char *s = *str;
 	static const int _utf_count[16] = {

Reply via email to