summaryrefslogtreecommitdiff
path: root/src/func.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/func.cc')
-rw-r--r--src/func.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/func.cc b/src/func.cc
index 59821e3..2608960 100644
--- a/src/func.cc
+++ b/src/func.cc
@@ -29,7 +29,8 @@
#include "context.h"
#include "dxfdim.h"
#include "builtin.h"
-#include <math.h>
+#include "mathc99.h"
+#include <time.h>
AbstractFunction::~AbstractFunction()
{
@@ -290,7 +291,7 @@ Value builtin_log(const Context *, const QVector<QString>&, const QVector<Value>
if (args.size() == 2 && args[0].type == Value::NUMBER && args[1].type == Value::NUMBER)
return Value(log(args[1].num) / log(args[0].num));
if (args.size() == 1 && args[0].type == Value::NUMBER)
- return Value(log(args[0].num) / log(10));
+ return Value(log(args[0].num) / log(10.0));
return Value();
}
contact: Jan Huwald // Impressum