Remove ABS in favor of Math::abs

This commit is contained in:
kobewi 2022-11-30 17:56:32 +01:00
parent 3d9b05ad4a
commit 10f6c01b9c
68 changed files with 142 additions and 146 deletions

View file

@ -134,7 +134,7 @@ public:
CanvasKey(const RID &p_canvas, int p_layer, int p_sublayer) {
canvas = p_canvas;
int64_t sign = p_layer < 0 ? -1 : 1;
stacking = sign * (((int64_t)ABS(p_layer)) << 32) + p_sublayer;
stacking = sign * (((int64_t)Math::abs(p_layer)) << 32) + p_sublayer;
}
int get_layer() const { return stacking >> 32; }
};