From 9935860426430cae26f58c0d066c8fb72cca2c3e Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Thu, 28 Feb 2008 20:04:10 +0000 Subject: Add fixes for MSVC warnings (thanks entryway). Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1095 --- src/m_misc.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/m_misc.c') diff --git a/src/m_misc.c b/src/m_misc.c index 506c2f7a..40bf2bce 100644 --- a/src/m_misc.c +++ b/src/m_misc.c @@ -37,6 +37,9 @@ #ifdef _WIN32 #include +#ifdef _MSC_VER +#include +#endif #else #include #include @@ -1080,7 +1083,7 @@ static void LoadDefaultCollection(default_collection_t *collection) break; case DEFAULT_FLOAT: - * (float *) def->location = atof(strparm); + * (float *) def->location = (float) atof(strparm); break; } -- cgit v1.2.3