diff options
Diffstat (limited to 'libstore')
-rw-r--r-- | libstore/zero.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libstore/zero.c b/libstore/zero.c index 2960c18a..b35d29a5 100644 --- a/libstore/zero.c +++ b/libstore/zero.c @@ -150,8 +150,9 @@ zero_open (const char *name, int flags, } else { - store_offset_t max_offs = ~((store_offset_t)1 - << (CHAR_BIT * sizeof (store_offset_t) - 2)); + store_offset_t max_offs = ( + ((store_offset_t)1 << (CHAR_BIT * sizeof (store_offset_t) - 2)) + - 1) * 2 + 1; return store_zero_create (max_offs, flags, store); } } |