util.c: Add some asserts()
authorKarl Williamson <public@khwilliamson.com>
Thu, 8 Nov 2012 18:11:41 +0000 (11:11 -0700)
committerKarl Williamson <public@khwilliamson.com>
Sun, 11 Nov 2012 18:50:11 +0000 (11:50 -0700)
commit223f01dbd9ed14415f68a748bb69e783b9c46685
tree5a56403f1cf0a4209ac1e6fa7d4167062ad9dcf8
parent1045c414b4d7fd97b9ed116dcd62f79eb087dbd9
util.c: Add some asserts()

These functions improperly have a signed parameter, when the value
should always be at least 0.  We have a field report that one of them is
getting called with a negative value.  Add asserts to catch this
condition (if compiling assertions is on) earlier.
util.c