Commit ed59c5a8 authored by twanvl's avatar twanvl

minor fixes for building with vs2008.

parent 2961a3be
...@@ -27,6 +27,8 @@ ...@@ -27,6 +27,8 @@
#define UNICODE #define UNICODE
#define _UNICODE #define _UNICODE
#define _CRT_SECURE_NO_WARNINGS
#include <windows.h> #include <windows.h>
#include <tchar.h> #include <tchar.h>
#include <stdio.h> #include <stdio.h>
......
...@@ -146,7 +146,7 @@ class ScriptStyleEvent : public Action { ...@@ -146,7 +146,7 @@ class ScriptStyleEvent : public Action {
inline ScriptStyleEvent(const StyleSheet* stylesheet, const Style* style) inline ScriptStyleEvent(const StyleSheet* stylesheet, const Style* style)
: stylesheet(stylesheet), style(style) : stylesheet(stylesheet), style(style)
{} {}
virtual String getName(bool to_undo) const; virtual String getName(bool to_undo) const;
virtual void perform(bool to_undo); virtual void perform(bool to_undo);
......
...@@ -440,7 +440,7 @@ void instrBinary (BinaryInstructionType i, ScriptValueP& a, const ScriptValueP& ...@@ -440,7 +440,7 @@ void instrBinary (BinaryInstructionType i, ScriptValueP& a, const ScriptValueP&
else if (bi == 1) a = to_script(aa); else if (bi == 1) a = to_script(aa);
else if (bi == 2) a = to_script(aa * aa); else if (bi == 2) a = to_script(aa * aa);
else if (bi == 3) a = to_script(aa * aa * aa); else if (bi == 3) a = to_script(aa * aa * aa);
else a = to_script(pow(aa,bi)); else a = to_script(pow((double)aa,bi));
} }
} else { } else {
a = to_script(pow((double)*a, (double)*b)); a = to_script(pow((double)*a, (double)*b));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment