From 51365c4b9ddf49ff93be82e1d25b2314da1796e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Thu, 13 Aug 2009 22:31:58 +0200 Subject: [PATCH] mathlib: minor fix --- src/mathlib.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/mathlib.cpp b/src/mathlib.cpp index 1b9ca7ae0..b94047ab5 100644 --- a/src/mathlib.cpp +++ b/src/mathlib.cpp @@ -48,10 +48,6 @@ double MathLib::toDoubleNumber(const std::string &str) { return std::strtoul(str.c_str(), '\0', 16); } - if (strncmp(str.c_str(), "0", 1) == 0) - { - return std::strtoul(str.c_str(), '\0', 8); - } return std::atof(str.c_str()); }