Allow for warning-free build of common with MS VC on warning level 3.

This commit is contained in:
Oliver Schmidt
2013-04-07 22:19:23 +02:00
parent 365668785c
commit ffb8595440
4 changed files with 12 additions and 6 deletions

View File

@@ -99,7 +99,7 @@ Float FP_F_FromInt (long Val)
/* Convert an integer into a floating point variable */
{
Float D;
D.V = Val;
D.V = (float) Val;
return D;
}
@@ -164,7 +164,7 @@ size_t FP_D_Size (void)
unsigned char* FP_D_Data (Double Val)
/* Return the raw data of a double in a malloc'ed buffer. Free after use. */
{
float F = Val.V;
float F = (float) Val.V;
return memcpy (xmalloc (F_SIZE), &F, F_SIZE);
}