Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/common/lib/libc/stdlib bring the casts to the operands, not ...
details: https://anonhg.NetBSD.org/src/rev/1c7344b051e0
branches: trunk
changeset: 778338:1c7344b051e0
user: christos <christos%NetBSD.org@localhost>
date: Thu Mar 22 15:57:29 2012 +0000
description:
bring the casts to the operands, not the operation results.
diffstat:
common/lib/libc/stdlib/_strtoul.h | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (20 lines):
diff -r 294847436f89 -r 1c7344b051e0 common/lib/libc/stdlib/_strtoul.h
--- a/common/lib/libc/stdlib/_strtoul.h Thu Mar 22 15:43:37 2012 +0000
+++ b/common/lib/libc/stdlib/_strtoul.h Thu Mar 22 15:57:29 2012 +0000
@@ -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 @@
/*
* 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';
Home |
Main Index |
Thread Index |
Old Index