bc: fix comment handling
function old new delta bc_vm_run 514 513 -1 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
@ -7088,10 +7088,13 @@ static BC_STATUS zbc_vm_stdin(void)
|
||||
string++;
|
||||
if (c == '/' && *string == '*') {
|
||||
comment = true;
|
||||
break;
|
||||
string++;
|
||||
continue;
|
||||
}
|
||||
if (c == '*' && *string == '/')
|
||||
if (c == '*' && *string == '/') {
|
||||
comment = false;
|
||||
string++;
|
||||
}
|
||||
}
|
||||
if (str || comment || string[-2] == '\\') {
|
||||
bc_vec_concat(&buffer, buf.v);
|
||||
|
Reference in New Issue
Block a user