From a6300f6ac63d44daf45ff40f37ec514e3a2fe292 Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Mon, 26 Sep 2016 21:40:31 +0200 Subject: [PATCH] Fix warning on 32-bit ARM: 2 << 31 overflows int Thanks to GCC 6.1 for finding this. Signed-off-by: Joachim Nilsson --- conf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conf.c b/conf.c index ae966b8c..85bf6c29 100644 --- a/conf.c +++ b/conf.c @@ -197,7 +197,7 @@ void conf_parse_rlimit(char *line) } else { const char *err = NULL; - new = strtonum(tok, 0, 2 << 31, &err); + new = strtonum(tok, 0, (long long)2 << 31, &err); if (err) goto fail; }