[INTERPRETER]

* BUG: Fix the behaviour of INPUT so that it uses Val() again to convert 
  the values read from the stream.


git-svn-id: svn://localhost/gambas/trunk@4549 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
Benoît Minisini 2012-03-14 01:57:30 +00:00
parent bd02074fed
commit ca8bc989dd

View file

@ -286,16 +286,12 @@ void SUBR_input(ushort code)
RELEASE_OBJECT(SP);
}
SP->type = T_NULL;
if (addr)
{
SP->type = T_STRING;
SP->_string.addr = addr;
SP->_string.start = 0;
SP->_string.len = STRING_length(addr);
}
else
{
SP->type = T_NULL;
VALUE_from_string(SP, addr, STRING_length(addr));
STRING_free(&addr);
}
SP++;