From 7b74fec6cc70af95721d0e0ce2cdf24e8be52b86 Mon Sep 17 00:00:00 2001 From: gambas <g4mba5@gmail.com> Date: Wed, 21 Aug 2019 22:36:54 +0200 Subject: [PATCH] '&/' operator now automatically converts its arguments to strings. [INTERPRETER] * NEW: '&/' operator now automatically converts its arguments to strings. --- main/gbx/gbx_subr_string.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/main/gbx/gbx_subr_string.c b/main/gbx/gbx_subr_string.c index b56de39db..6d1c07421 100644 --- a/main/gbx/gbx_subr_string.c +++ b/main/gbx/gbx_subr_string.c @@ -174,8 +174,10 @@ void SUBR_file(ushort code) for (i = 0; i < NPARAM; i++) { - /*VALUE_conv(&PARAM[i], T_STRING);*/ - SUBR_get_string_len(&PARAM[i], &addr, &len); + VALUE_conv_string(&PARAM[i]); + addr = PARAM[i]._string.addr; + len = PARAM[i]._string.len; + //SUBR_get_string_len(&PARAM[i], &addr, &len); if (len > 0) {