diff data/model/PowerOfTwoZoomConstraint.cpp @ 929:59e7fe1b1003 warnfix_no_size_t

Unsigned removals and warning fixes in data/
author Chris Cannam
date Tue, 17 Jun 2014 14:33:42 +0100
parents 3a13b0d4934e
children d4a28d1479a8 48e9f538e6e9
line wrap: on
line diff
--- a/data/model/PowerOfTwoZoomConstraint.cpp	Tue Jun 17 13:52:07 2014 +0100
+++ b/data/model/PowerOfTwoZoomConstraint.cpp	Tue Jun 17 14:33:42 2014 +0100
@@ -15,13 +15,13 @@
 
 #include "PowerOfTwoZoomConstraint.h"
 
-size_t
-PowerOfTwoZoomConstraint::getNearestBlockSize(size_t req,
+int
+PowerOfTwoZoomConstraint::getNearestBlockSize(int req,
 					      RoundingDirection dir) const
 {
-    size_t result = 0;
+    int result = 0;
 
-    for (size_t bs = 1; ; bs *= 2) {
+    for (int bs = 1; ; bs *= 2) {
 	if (bs >= req) {
 	    if (dir == RoundNearest) {
 		if (bs - req < req - bs/2) {