Skip to content

Commit

Permalink
-Fix error: the parameter of the Time constructor must be a double
Browse files Browse the repository at this point in the history
  • Loading branch information
DimitriPlotnikov committed Sep 15, 2016
1 parent 2dcf3d7 commit a2211a0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public String convertFunctionCall(final ASTFunctionCall astFunctionCall) {
}
// Time.steps -> nest::Time(nest::Time::ms( args )).get_steps());
if ("steps".equals(functionName)) {
return "nest::Time(nest::Time::ms(%s)).get_steps()";
return "nest::Time(nest::Time::ms((double) %s)).get_steps()";
}

if (PredefinedFunctions.POW.equals(functionName)) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
<#--
Generates C++ declaration
In general case creates an
@param variable VariableSymbol
@param tc templatecontroller
@param variable VariableSymbol Variable for which the initialization should be done
@param printer The particular pretty printer which prints expressions. Is used to handel differences where the
variable is declared (inside a struct or in another method)
-->
${signature("variable", "printer")}

Expand Down

0 comments on commit a2211a0

Please sign in to comment.