mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-24 04:51:19 +00:00
Quiet two more warnings from GCC
This commit is contained in:
parent
3cabd5f0ed
commit
96a0bee651
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue