ols parsing: fix bug: node value is not stored as string in AST

time-shift
Houtan Bastani 2019-02-01 11:37:41 +01:00
parent 1f3e027a09
commit e758d5bdc9
No known key found for this signature in database
GPG Key ID: 000094FB955BE169
1 changed files with 1 additions and 1 deletions

View File

@ -303,7 +303,7 @@ end
function X = evalNode(ds, node, line, X)
if strcmp(node.node_type, 'NumConstNode')
X = dseries(str2double(node.value), ds.dates, 'const');
X = dseries(node.value, ds.dates, 'const');
elseif strcmp(node.node_type, 'VariableNode')
if ~(strcmp(node.type, 'endogenous') ...
|| (strcmp(node.type, 'exogenous') && any(strcmp(ds.name, node.name))))