diff --git a/src/d_dehacked.cpp b/src/d_dehacked.cpp index 45c25f92b..9df5935c2 100644 --- a/src/d_dehacked.cpp +++ b/src/d_dehacked.cpp @@ -894,7 +894,7 @@ static int PatchThing (int thingy) // don't specify a new height. if (info->flags & MF_SPAWNCEILING && !hadHeight && - thingy <= OrgHeights.Size() && thingy > 0) + thingy <= (int)OrgHeights.Size() && thingy > 0) { info->height = OrgHeights[thingy - 1] * FRACUNIT; info->projectilepassheight = 0; @@ -1069,7 +1069,7 @@ static int PatchFrame (int frameNum) { unsigned int i; - if (val < OrgSprNames.Size()) + if (val < (int)OrgSprNames.Size()) { for (i = 0; i < sprites.Size(); i++) { diff --git a/src/m_alloc.cpp b/src/m_alloc.cpp index a613e8ee2..5271325e7 100644 --- a/src/m_alloc.cpp +++ b/src/m_alloc.cpp @@ -32,7 +32,12 @@ ** */ +#ifdef __FreeBSD__ #include +#include +#else +#include +#endif #include "i_system.h" #include "dobject.h"