(svn r13572) -Fix: MSVC x64 complains.
authorrubidium
Thu, 19 Jun 2008 09:15:52 +0000
changeset 11016 88f9744fefcc
parent 11015 cf4b53f23fde
child 11017 115b1bf01e5e
(svn r13572) -Fix: MSVC x64 complains.
src/players.cpp
src/win32.cpp
--- a/src/players.cpp	Wed Jun 18 21:19:04 2008 +0000
+++ b/src/players.cpp	Thu Jun 19 09:15:52 2008 +0000
@@ -1033,7 +1033,7 @@
 {
 	const Player* p;
 	const Player* pl[MAX_PLAYERS];
-	size_t count = 0;
+	uint count = 0;
 	int8 player = -1;
 
 	/* Sort all active players with the highest score first */
--- a/src/win32.cpp	Wed Jun 18 21:19:04 2008 +0000
+++ b/src/win32.cpp	Thu Jun 19 09:15:52 2008 +0000
@@ -460,8 +460,8 @@
 static void GamelogPrintCrashLogProc(const char *s)
 {
 	DWORD num_written;
-	WriteFile(_file_crash_log, s, strlen(s), &num_written, NULL);
-	WriteFile(_file_crash_log, "\r\n", strlen("\r\n"), &num_written, NULL);
+	WriteFile(_file_crash_log, s, (DWORD)strlen(s), &num_written, NULL);
+	WriteFile(_file_crash_log, "\r\n", (DWORD)strlen("\r\n"), &num_written, NULL);
 }
 
 static LONG WINAPI ExceptionHandler(EXCEPTION_POINTERS *ep)