From df5664b4c1159fb0b0af09ab0d63ce5a338618bc Mon Sep 17 00:00:00 2001 From: SR_team Date: Sat, 18 Jun 2022 16:47:04 +0300 Subject: [PATCH] Fix deprecated enum operation --- src/rwbase.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rwbase.h b/src/rwbase.h index a3e20ed..5d869f7 100644 --- a/src/rwbase.h +++ b/src/rwbase.h @@ -343,7 +343,7 @@ struct Matrix void destroy(void); void setIdentity(void); void optimize(Tolerance *tolerance = nil); - void update(void) { flags &= ~(IDENTITY|TYPEMASK); } + void update(void) { flags &= ~(static_cast(IDENTITY) | static_cast(TYPEMASK)); } static Matrix *mult(Matrix *dst, const Matrix *src1, const Matrix *src2); static Matrix *invert(Matrix *dst, const Matrix *src); static Matrix *transpose(Matrix *dst, const Matrix *src);