aboutsummaryrefslogtreecommitdiffstats
path: root/src/zsetu.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/zsetu.c')
-rw-r--r--src/zsetu.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/zsetu.c b/src/zsetu.c
index 37fbf7c..538ea37 100644
--- a/src/zsetu.c
+++ b/src/zsetu.c
@@ -13,9 +13,6 @@ zsetu(z_t a, unsigned long long int b)
}
ENSURE_SIZE(a, SIZE_MULTIPLE(b, *(a->chars)));
SET_SIGNUM(a, 1);
- a->used = 0;
- while (b) {
- a->chars[a->used++] = (zahl_char_t)b;
- b >>= BITS_PER_CHAR;
- }
+ a->chars[0] = (zahl_char_t)b;
+ a->used = 1;
}