diff --git a/src/fragglescript/t_func.cpp b/src/fragglescript/t_func.cpp index 5d4320a4f9..f8648808d1 100644 --- a/src/fragglescript/t_func.cpp +++ b/src/fragglescript/t_func.cpp @@ -2185,7 +2185,7 @@ void FParser::SF_SetLineMonsterBlocking(void) { if (CheckArgs(2)) { - int blocking = intvalue(t_argv[1]) ? ML_BLOCKMONSTERS : 0; + int blocking = intvalue(t_argv[1]) ? (int)ML_BLOCKMONSTERS : 0; int tag=intvalue(t_argv[0]); FLineIdIterator itr(tag); diff --git a/src/thingdef/thingdef_expression.cpp b/src/thingdef/thingdef_expression.cpp index 8ca02b4223..c888f97d56 100644 --- a/src/thingdef/thingdef_expression.cpp +++ b/src/thingdef/thingdef_expression.cpp @@ -3137,7 +3137,7 @@ ExpEmit FxArrayElement::Emit(VMFunctionBuilder *build) { shiftbits++; } - assert(1 << shiftbits == arraytype->ElementSize && "Element sizes other than power of 2 are not implemented"); + assert(1u << shiftbits == arraytype->ElementSize && "Element sizes other than power of 2 are not implemented"); build->Emit(OP_BOUND, indexv.RegNum, arraytype->ElementCount); if (shiftbits > 0) {