Browse Source

Fix windows build

Panagiotis Christopoulos Charitos 8 years ago
parent
commit
221d3b4e4c
2 changed files with 7 additions and 7 deletions
  1. 6 6
      src/anki/util/StdTypes.h
  2. 1 1
      src/anki/util/ThreadWindows.cpp

+ 6 - 6
src/anki/util/StdTypes.h

@@ -81,15 +81,15 @@ public:
 	/// @name Error codes
 	/// @{
 	static constexpr I32 NONE = 0;
-	static constexpr I32 OUT_OF_MEMORY = -1;
-	static constexpr I32 FUNCTION_FAILED = -2; ///< External operation failed
-	static constexpr I32 USER_DATA = -3;
+	static constexpr I32 OUT_OF_MEMORY = 1;
+	static constexpr I32 FUNCTION_FAILED = 2; ///< External operation failed
+	static constexpr I32 USER_DATA = 3;
 
 	// File errors
-	static constexpr I32 FILE_NOT_FOUND = -4;
-	static constexpr I32 FILE_ACCESS = -5; ///< Read/write access error
+	static constexpr I32 FILE_NOT_FOUND = 4;
+	static constexpr I32 FILE_ACCESS = 5; ///< Read/write access error
 
-	static constexpr I32 UNKNOWN = -6;
+	static constexpr I32 UNKNOWN = 6;
 	/// @}
 
 	/// Construct using an error code.

+ 1 - 1
src/anki/util/ThreadWindows.cpp

@@ -34,7 +34,7 @@ static DWORD WINAPI threadCallback(LPVOID ud)
 
 	Error err = thread->getCallback()(info);
 
-	return err._getCodeInt();
+	return err._getCode();
 }
 
 Thread::Thread(const char* name)