mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-28 15:02:01 +00:00
fixed right shift operator for unsigned values
This is version protected to avoid breaking old code.
This commit is contained in:
parent
7cd89fe07b
commit
358001c306
1 changed files with 1 additions and 1 deletions
|
@ -4011,7 +4011,7 @@ FxExpression *FxShift::Resolve(FCompileContext& ctx)
|
|||
if (left->IsNumeric() && right->IsNumeric())
|
||||
{
|
||||
if (!Promote(ctx, true)) return nullptr;
|
||||
if (ValueType == TypeUInt32 && Operator == TK_RShift) Operator = TK_URShift;
|
||||
if ((left->ValueType == TypeUInt32 && ctx.Version >= MakeVersion(3, 7)) && Operator == TK_RShift) Operator = TK_URShift;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue