[elementary_functions] fix argument check in log1p from < 0 to <= -1
[scilab.git] / scilab / modules / elementary_functions / sci_gateway / cpp / sci_log1p.cpp
index 14e5e78..5adba08 100644 (file)
@@ -65,7 +65,7 @@ types::Function::ReturnValue sci_log1p(types::typed_list &in, int _iRetCount, ty
     int size = pDblIn->getSize();
     for (int i = 0; i < size; i++)
     {
-        if (pInR[i] < 0)
+        if (pInR[i] <= -1)
         {
             if (ConfigVariable::getIeee() == 0)
             {