Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dóra Kocsis
dynare
Commits
5f3290f7
Commit
5f3290f7
authored
Aug 29, 2011
by
Houtan Bastani
Browse files
bugfix: sign operator for compiled static file
parent
cf7d1723
Changes
1
Show whitespace changes
Inline
Side-by-side
preprocessor/ExprNode.cc
View file @
5f3290f7
...
...
@@ -1638,7 +1638,7 @@ UnaryOpNode::writeOutput(ostream &output, ExprNodeOutputType output_type,
output
<<
"abs"
;
break
;
case
oSign
:
if
(
output_type
==
oCDynamicModel
)
if
(
output_type
==
oCDynamicModel
||
output_type
==
oCStaticModel
)
output
<<
"copysign"
;
else
output
<<
"sign"
;
...
...
@@ -1713,7 +1713,7 @@ UnaryOpNode::writeOutput(ostream &output, ExprNodeOutputType output_type,
&&
arg
->
precedence
(
output_type
,
temporary_terms
)
<
precedence
(
output_type
,
temporary_terms
)))
{
output
<<
LEFT_PAR
(
output_type
);
if
(
op_code
==
oSign
&&
output_type
==
oCDynamicModel
)
if
(
op_code
==
oSign
&&
(
output_type
==
oCDynamicModel
||
output_type
==
oCStaticModel
)
)
output
<<
"1.0,"
;
close_parenthesis
=
true
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment