Skip to content

Commit

Permalink
Fix typos in the C version of the bool function
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcel Stimberg committed Jul 5, 2013
1 parent 49e1bfd commit d3d51bd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion brian2/codegen/functions/numpyfunctions.py
Expand Up @@ -128,7 +128,7 @@ def code_cpp(self, language, var):
support_code = '''
double _bool(float value)
{
return value == 0 ? false : True
return value == 0 ? false : true;
}
'''

Expand Down
5 changes: 5 additions & 0 deletions brian2/codegen/languages/cpp/templates/stateupdate.cpp
Expand Up @@ -4,6 +4,11 @@
{% macro main() %}
// USE_SPECIFIERS { _num_neurons }

////// SUPPORT CODE ///
{% for line in support_code_lines %}
//{{line}}
{% endfor %}

////// HANDLE DENORMALS ///
{% for line in denormals_code_lines %}
{{line}}
Expand Down

0 comments on commit d3d51bd

Please sign in to comment.