Use LL for large int constants to fix 32-bit.
This commit is contained in:
parent
0df352d3a4
commit
17e13d54f7
14
sysutils/bacula/patches/patch-src_lib_edit_c
Normal file
14
sysutils/bacula/patches/patch-src_lib_edit_c
Normal file
@ -0,0 +1,14 @@
|
||||
$OpenBSD: patch-src_lib_edit_c,v 1.1 2016/08/02 00:23:01 sthen Exp $
|
||||
--- src/lib/edit.c.orig Tue Aug 2 01:22:03 2016
|
||||
+++ src/lib/edit.c Tue Aug 2 01:22:13 2016
|
||||
@@ -350,8 +350,8 @@ static bool strunit_to_uint64(char *str, int str_len,
|
||||
1000000, /* mb megabyte */
|
||||
1073741824, /* gigabyte */
|
||||
1000000000, /* gb gigabyte */
|
||||
- 1099511627776, /* terabyte */
|
||||
- 1000000000000}; /* tb terabyte */
|
||||
+ 1099511627776LL, /* terabyte */
|
||||
+ 1000000000000LL}; /* tb terabyte */
|
||||
|
||||
if (!get_modifier(str, num_str, sizeof(num_str), mod_str, sizeof(mod_str))) {
|
||||
return 0;
|
Loading…
Reference in New Issue
Block a user