From 4da8ee251a1e563f13f8d76c5b346fbbf850a5bc Mon Sep 17 00:00:00 2001 From: gambas Date: Sat, 11 Aug 2018 07:54:22 +0200 Subject: [PATCH] Fix an internal common string routine used by thousand separator management. [INTERPRETER] * BUG: Fix an internal common string routine used by thousand separator management. --- main/share/gb_common_buffer_temp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/share/gb_common_buffer_temp.h b/main/share/gb_common_buffer_temp.h index aa4a7bbeb..72113671d 100644 --- a/main/share/gb_common_buffer_temp.h +++ b/main/share/gb_common_buffer_temp.h @@ -106,7 +106,7 @@ int COMMON_get_size_left(void) bool COMMON_has_string(const char *str, int len) { - if (COMMON_get_size_left() > len) + if (COMMON_get_size_left() < len) return FALSE; return memcmp(&common_buffer[COMMON_pos], str, len) == 0;