From 38eb07adf5c0919fd6097962736727732448d5bf Mon Sep 17 00:00:00 2001 From: gambas Date: Tue, 19 Jun 2018 16:09:30 +0200 Subject: [PATCH] Fix the clang fix. Compiler messages are visible again. [COMPILER] * BUG: Fix the clang fix. Compiler messages are visible again. --- main/gbc/gb_error.c | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/main/gbc/gb_error.c b/main/gbc/gb_error.c index fb5f8982b..aa132cad5 100644 --- a/main/gbc/gb_error.c +++ b/main/gbc/gb_error.c @@ -84,22 +84,22 @@ char *ERROR_get(void) } - void _add_char(uchar c, int *n) - { - if (*n >= MAX_ERROR_MSG) - return; +void _add_char(uchar c, int *n) +{ + if (*n >= MAX_ERROR_MSG) + return; - ERROR_info.msg[*n++] = c; - } + ERROR_info.msg[(*n)++] = c; +} - void _add_string(const char *s, int *n) - { - while (*s) - { - _add_char(*s, n); - s++; - } - } +void _add_string(const char *s, int *n) +{ + while (*s) + { + _add_char(*s, n); + s++; + } +} void ERROR_define(const char *pattern, const char *arg[]) {