From 73407853e4a3c1b3cbfec41b8eabb5f71fbe677f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Wed, 28 Oct 2020 19:05:03 +0100 Subject: [PATCH] =?UTF-8?q?module/script:=20can=E2=80=99t=20use=20logical?= =?UTF-8?q?=20OR=20when=20building=20a=20base=2010=20number?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/script.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/script.c b/modules/script.c index 024654d..b518b9f 100644 --- a/modules/script.c +++ b/modules/script.c @@ -140,7 +140,7 @@ process_line(struct module *mod, const char *line, size_t len) goto bad_tag; start *= 10; - start |= _start[i] - '0'; + start += _start[i] - '0'; } long end = 0; @@ -149,7 +149,7 @@ process_line(struct module *mod, const char *line, size_t len) goto bad_tag; end *= 10; - end |= _end[i] - '0'; + end += _end[i] - '0'; } if (type_len > 9 && memcmp(type, "realtime:", 9) == 0) {