From: akl Date: Fri, 5 Dec 2008 14:43:35 +0000 (+0000) Subject: Modify fmod() by '%' operator to operate with integers. X-Git-Tag: V5_1_0rc2~1 X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=commitdiff_plain;h=21c57ac1ede30f0bee01db8fbec004e6956eaafe;hp=127d2277c6a516d0e9fadd77b4ef0b0c6286cf17 Modify fmod() by '%' operator to operate with integers. --- diff --git a/src/SMESH_I/SMESH_2smeshpy.cxx b/src/SMESH_I/SMESH_2smeshpy.cxx index 130bc5fb9..4340ab41b 100644 --- a/src/SMESH_I/SMESH_2smeshpy.cxx +++ b/src/SMESH_I/SMESH_2smeshpy.cxx @@ -1726,7 +1726,7 @@ const TCollection_AsciiString & _pyCommand::GetObject() } // if number of ' or " is not divisible by 2, // then get an object at the start of the command - if ( fmod( nb1, 2 ) != 0 || fmod( nb2, 2 ) != 0 ) + if ( nb1 % 2 != 0 || nb2 % 2 != 0 ) begPos = 1; } // store