minor fixes for building with vs2008.

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1179 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2008-08-30 13:14:30 +00:00
parent ce906e83f8
commit 6e19511d48
3 changed files with 4 additions and 2 deletions
+2
View File
@@ -27,6 +27,8 @@
#define UNICODE
#define _UNICODE
#define _CRT_SECURE_NO_WARNINGS
#include <windows.h>
#include <tchar.h>
#include <stdio.h>
+1 -1
View File
@@ -146,7 +146,7 @@ class ScriptStyleEvent : public Action {
inline ScriptStyleEvent(const StyleSheet* stylesheet, const Style* style)
: stylesheet(stylesheet), style(style)
{}
virtual String getName(bool to_undo) const;
virtual void perform(bool to_undo);
+1 -1
View File
@@ -440,7 +440,7 @@ void instrBinary (BinaryInstructionType i, ScriptValueP& a, const ScriptValueP&
else if (bi == 1) a = to_script(aa);
else if (bi == 2) a = to_script(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 {
a = to_script(pow((double)*a, (double)*b));