summaryrefslogtreecommitdiffstats
path: root/sysif.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysif.c')
-rw-r--r--sysif.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sysif.c b/sysif.c
index 43f8fe80..ccca25cf 100644
--- a/sysif.c
+++ b/sysif.c
@@ -1332,10 +1332,10 @@ static val crypt_wrap(val wkey, val wsalt)
off_t off_t_num(val num, val self)
{
- switch (sizeof(off_t)) {
- case 4:
+ switch (CHAR_BIT * sizeof(off_t)) {
+ case 32:
return c_i32(num, self);
- case 8:
+ case 64:
return c_i64(num, self);
default:
internal_error("portme: unsupported off_t size");