Fix an internal common string routine used by thousand separator management.

[INTERPRETER]
* BUG: Fix an internal common string routine used by thousand separator management.
This commit is contained in:
gambas 2018-08-11 07:54:22 +02:00
parent c13f650c8f
commit 4da8ee251a

View file

@ -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;