Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/sys remove unnecessary cast now that lint is more intell...



details:   https://anonhg.NetBSD.org/src/rev/4cc0ef0e3708
branches:  trunk
changeset: 753226:4cc0ef0e3708
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Mar 21 00:04:34 2010 +0000

description:
remove unnecessary cast now that lint is more intelligent.

diffstat:

 sys/sys/bitops.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r e55e5824dab8 -r 4cc0ef0e3708 sys/sys/bitops.h
--- a/sys/sys/bitops.h  Sun Mar 21 00:03:46 2010 +0000
+++ b/sys/sys/bitops.h  Sun Mar 21 00:04:34 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bitops.h,v 1.5 2010/03/20 14:43:50 christos Exp $      */
+/*     $NetBSD: bitops.h,v 1.6 2010/03/21 00:04:34 christos Exp $      */
 
 /*-
  * Copyright (c) 2007, 2010 The NetBSD Foundation, Inc.
@@ -279,7 +279,7 @@
 {
        uint32_t _t;
 
-       _t = (uint32_t)(((uint64_t)_v * _m) >> 32);
+       _t = ((uint64_t)_v * _m) >> 32;
        return (_t + ((_v - _t) >> _s1)) >> _s2;
 }
 



Home | Main Index | Thread Index | Old Index