[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:
parent
bd02074fed
commit
ca8bc989dd
1 changed files with 4 additions and 8 deletions
|
@ -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++;
|
||||
|
|
Loading…
Reference in a new issue