X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=packages%2Fstd%2Fsrc%2FbbstdMathOperation.cxx;h=3ab9e6f9335001ce75385caf1f8978024a0ea60f;hb=560318e314802dd68405a0e11f0082e6d5fc6efb;hp=a0cd94477d63a30ae6aeb77c871060245874a71d;hpb=af00d6db1dc36f21081781f4c15e4762c2eb25b3;p=bbtk.git diff --git a/packages/std/src/bbstdMathOperation.cxx b/packages/std/src/bbstdMathOperation.cxx index a0cd944..3ab9e6f 100644 --- a/packages/std/src/bbstdMathOperation.cxx +++ b/packages/std/src/bbstdMathOperation.cxx @@ -92,6 +92,7 @@ void MathOperation::Process() if (bbGetInputType()==24) bbSetOutputOut( floor( bbGetInputIn1() ) ); if (bbGetInputType()==25) bbSetOutputOut( ceil( bbGetInputIn1() ) ); if (bbGetInputType()==26) bbSetOutputOut( trunc( bbGetInputIn1() ) ); + if (bbGetInputType()==30) if (bbGetInputIn1()==(int)bbGetInputIn2()) { bbSetOutputOut(1); } else { bbSetOutputOut(0); } ; } //===== // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)