aboutsummaryrefslogtreecommitdiffstats
path: root/src/zsetu.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-03-01 19:41:04 +0100
committerMattias Andrée <maandree@kth.se>2016-03-01 19:41:04 +0100
commit465749ec6de871ae244ebe6d3264c71eeb728fcc (patch)
treed14bffe84132f80fc8edd266287bec3dff224e84 /src/zsetu.c
parentzsetu: change macro from CHARS_PER_TYPE to SIZE_MULTIPLE (diff)
downloadlibzahl-465749ec6de871ae244ebe6d3264c71eeb728fcc.tar.gz
libzahl-465749ec6de871ae244ebe6d3264c71eeb728fcc.tar.bz2
libzahl-465749ec6de871ae244ebe6d3264c71eeb728fcc.tar.xz
Add typedef zahl_char_t for internal use
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'src/zsetu.c')
-rw-r--r--src/zsetu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/zsetu.c b/src/zsetu.c
index 385403c..dd1be17 100644
--- a/src/zsetu.c
+++ b/src/zsetu.c
@@ -18,7 +18,7 @@ zsetu(z_t a, unsigned long long int b)
SET_SIGNUM(a, 1);
a->used = 0;
while (b) {
- a->chars[a->used++] = (uint32_t)b;
+ a->chars[a->used++] = (zahl_char_t)b;
b >>= BITS_PER_CHAR;
}
}