summaryrefslogtreecommitdiff
path: root/rotord/src/nodes_maths.h
diff options
context:
space:
mode:
authorTim Redfern <tim@eclectronics.org>2013-08-21 13:27:22 +0100
committerTim Redfern <tim@eclectronics.org>2013-08-21 13:27:22 +0100
commitcbf03a315657fc9e388e78dd39e9daf4fd0a9718 (patch)
tree9c89dac59bfa0dc185623d4225e28037d452a8d7 /rotord/src/nodes_maths.h
parent393c70c5fc67fff87d189e77dffc5a22ed94a628 (diff)
remove division by zero log
Diffstat (limited to 'rotord/src/nodes_maths.h')
-rw-r--r--rotord/src/nodes_maths.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/rotord/src/nodes_maths.h b/rotord/src/nodes_maths.h
index 617ca76..d083c72 100644
--- a/rotord/src/nodes_maths.h
+++ b/rotord/src/nodes_maths.h
@@ -74,13 +74,13 @@ namespace Rotor {
};
Arithmetic* clone(map<string,string> &_settings) { return new Arithmetic(_settings);};
const float output(const Time_spec &time) {
- if (attributes["operator"]->intVal==ARITHMETIC_divide||attributes["operator"]->intVal==ARITHMETIC_modulo){
- if (value==0.0f) {
- Poco::Logger& logger = Poco::Logger::get("Rotor");
- logger.error("Arithmetic node: caught division by zero, frame "+time.frame());
- return 0.0f;
- }
- }
+ //if (attributes["operator"]->intVal==ARITHMETIC_divide||attributes["operator"]->intVal==ARITHMETIC_modulo){
+ // if (value==0.0f) {
+ // Poco::Logger& logger = Poco::Logger::get("Rotor");
+ // logger.error("Arithmetic node: caught division by zero, frame "+time.frame());
+ // return 0.0f;
+ // }
+ //}
if (inputs.size()) { //there should there be a way to specify number of inputs in the code rather than in xml
if (inputs[0]->connection) {
float in= inputs[0]->get(time);