summaryrefslogtreecommitdiffstats
path: root/arith.c
diff options
context:
space:
mode:
Diffstat (limited to 'arith.c')
-rw-r--r--arith.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arith.c b/arith.c
index 8f268f95..afa55eb3 100644
--- a/arith.c
+++ b/arith.c
@@ -2750,10 +2750,10 @@ val width(val obj)
}
case TAG_PTR:
if (type(obj) == BGNUM) {
- int count;
+ mp_size count;
if (mp_cmp_z(mp(obj)) == MP_LT) {
mp_int tmp;
- int i;
+ mp_size i;
mp_2comp(mp(obj), &tmp, mp(obj)->used);
@@ -2765,7 +2765,7 @@ val width(val obj)
} else {
count = mp_count_bits(mp(obj));
}
- return num(count);
+ return unum(count);
}
default:
break;