Module Name: src Committed By: christos Date: Thu Mar 22 15:57:29 UTC 2012
Modified Files: src/common/lib/libc/stdlib: _strtoul.h Log Message: bring the casts to the operands, not the operation results. To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/common/lib/libc/stdlib/_strtoul.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/common/lib/libc/stdlib/_strtoul.h diff -u src/common/lib/libc/stdlib/_strtoul.h:1.2 src/common/lib/libc/stdlib/_strtoul.h:1.3 --- src/common/lib/libc/stdlib/_strtoul.h:1.2 Fri Mar 9 10:41:16 2012 +++ src/common/lib/libc/stdlib/_strtoul.h Thu Mar 22 11:57:29 2012 @@ -1,4 +1,4 @@ -/* $NetBSD: _strtoul.h,v 1.2 2012/03/09 15:41:16 christos Exp $ */ +/* $NetBSD: _strtoul.h,v 1.3 2012/03/22 15:57:29 christos Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -91,8 +91,8 @@ _FUNCNAME(const char *nptr, char **endpt /* * See strtol for comments as to the logic used. */ - cutoff = (__UINT)(__UINT_MAX / (__UINT)base); - cutlim = (int)(__UINT_MAX % (__UINT)base); + cutoff = ((__UINT)__UINT_MAX / (__UINT)base); + cutlim = (int)((__UINT)__UINT_MAX % (__UINT)base); for (acc = 0, any = 0;; c = *s++) { if (isdigit(c)) i = c - '0';