mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 11:10:47 +00:00
Fix warnings with TrackedType
git-svn-id: https://svn.eduke32.com/eduke32@7551 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
030f0b7013
commit
84c43dc99c
1 changed files with 2 additions and 2 deletions
|
@ -7,7 +7,7 @@ inline TrackedType TRACKER_NAME_<TrackedType>::operator TRACKER_OPERATOR_ (Right
|
||||||
|
|
||||||
switch (TRACKER_NOOP_)
|
switch (TRACKER_NOOP_)
|
||||||
{
|
{
|
||||||
case TRACKER_NOOP_RIGHTHAND_EQUAL_: isNoop = (this->TrackedValue == rightHand); break;
|
case TRACKER_NOOP_RIGHTHAND_EQUAL_: isNoop = (this->TrackedValue == (TrackedType)rightHand); break;
|
||||||
case TRACKER_NOOP_RIGHTHAND_ZERO_: isNoop = (rightHand == 0); break;
|
case TRACKER_NOOP_RIGHTHAND_ZERO_: isNoop = (rightHand == 0); break;
|
||||||
case TRACKER_NOOP_RIGHTHAND_ONE_: isNoop = (rightHand == 1);
|
case TRACKER_NOOP_RIGHTHAND_ONE_: isNoop = (rightHand == 1);
|
||||||
fallthrough__;
|
fallthrough__;
|
||||||
|
@ -19,7 +19,7 @@ inline TrackedType TRACKER_NAME_<TrackedType>::operator TRACKER_OPERATOR_ (Right
|
||||||
if (!isNoop)
|
if (!isNoop)
|
||||||
{
|
{
|
||||||
TRACKER_GLOBAL_HOOK_((uintptr_t) & this->TrackedValue);
|
TRACKER_GLOBAL_HOOK_((uintptr_t) & this->TrackedValue);
|
||||||
return this->TrackedValue TRACKER_OPERATOR_ rightHand;
|
return this->TrackedValue TRACKER_OPERATOR_ (TrackedType)rightHand;
|
||||||
}
|
}
|
||||||
else return this->TrackedValue;
|
else return this->TrackedValue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue