Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/include update to size_t
details: https://anonhg.NetBSD.org/src/rev/d95b0fc73b1f
branches: trunk
changeset: 341741:d95b0fc73b1f
user: christos <christos%NetBSD.org@localhost>
date: Fri Nov 20 20:24:49 2015 +0000
description:
update to size_t
diffstat:
include/bitstring.h | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (45 lines):
diff -r 214cf6015772 -r d95b0fc73b1f include/bitstring.h
--- a/include/bitstring.h Fri Nov 20 19:09:23 2015 +0000
+++ b/include/bitstring.h Fri Nov 20 20:24:49 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bitstring.h,v 1.9 2010/05/06 18:54:22 christos Exp $ */
+/* $NetBSD: bitstring.h,v 1.10 2015/11/20 20:24:49 christos Exp $ */
/*
* Copyright (c) 1989, 1993
@@ -90,7 +90,7 @@
/* clear bits start ... stop in bitstring */
#define bit_nclear(name, start, stop) do { \
bitstr_t *_name = name; \
- int _start = start, _stop = stop; \
+ size_t _start = start, _stop = stop; \
while (_start <= _stop) { \
bit_clear(_name, _start); \
_start++; \
@@ -100,7 +100,7 @@
/* set bits start ... stop in bitstring */
#define bit_nset(name, start, stop) do { \
bitstr_t *_name = name; \
- int _start = start, _stop = stop; \
+ size_t _start = start, _stop = stop; \
while (_start <= _stop) { \
bit_set(_name, _start); \
_start++; \
@@ -110,7 +110,7 @@
/* find first bit clear in name */
#define bit_ffc(name, nbits, value) do { \
bitstr_t *_name = name; \
- int _bit, _nbits = nbits, _value = -1; \
+ size_t _bit, _nbits = nbits, _value = -1; \
for (_bit = 0; _bit < _nbits; ++_bit) \
if (!bit_test(_name, _bit)) { \
_value = _bit; \
@@ -122,7 +122,7 @@
/* find first bit set in name */
#define bit_ffs(name, nbits, value) do { \
bitstr_t *_name = name; \
- int _bit, _nbits = nbits, _value = -1; \
+ size_t _bit, _nbits = nbits, _value = -1; \
for (_bit = 0; _bit < _nbits; ++_bit) \
if (bit_test(_name, _bit)) { \
_value = _bit; \
Home |
Main Index |
Thread Index |
Old Index