Fix deprecated enum operation

This commit is contained in:
SR_team 2022-06-18 16:47:04 +03:00 committed by GitHub
parent b4be832434
commit df5664b4c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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<int>(IDENTITY) | static_cast<int>(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);