Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/fs Use size_t instead of int for character count to avoi...
details: https://anonhg.NetBSD.org/src/rev/07060d43c188
branches: trunk
changeset: 328548:07060d43c188
user: jakllsch <jakllsch%NetBSD.org@localhost>
date: Sun Apr 06 19:25:22 2014 +0000
description:
Use size_t instead of int for character count to avoid sign compare issues.
diffstat:
sys/fs/unicode.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r ccf07bb651e0 -r 07060d43c188 sys/fs/unicode.h
--- a/sys/fs/unicode.h Sun Apr 06 19:18:00 2014 +0000
+++ b/sys/fs/unicode.h Sun Apr 06 19:25:22 2014 +0000
@@ -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 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] = {
Home |
Main Index |
Thread Index |
Old Index