From 1079f0918e5f02e5e9613d8e4f0708346e7a5c47 Mon Sep 17 00:00:00 2001 From: dupoxy Date: Sun, 14 Apr 2024 11:51:28 +0200 Subject: [PATCH] Cleanup: use function style cast in MAKE_ID macro Ref: !120630 --- intern/guardedalloc/intern/mallocn_guarded_impl.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/intern/guardedalloc/intern/mallocn_guarded_impl.cc b/intern/guardedalloc/intern/mallocn_guarded_impl.cc index 1cf19dff208..593fb3718fe 100644 --- a/intern/guardedalloc/intern/mallocn_guarded_impl.cc +++ b/intern/guardedalloc/intern/mallocn_guarded_impl.cc @@ -157,7 +157,7 @@ static const char *check_memlist(MemHead *memh); /* --------------------------------------------------------------------- */ #ifdef __BIG_ENDIAN__ -# define MAKE_ID(a, b, c, d) ((int)(a) << 24 | (int)(b) << 16 | (c) << 8 | (d)) +# define MAKE_ID(a, b, c, d) (int(a) << 24 | int(b) << 16 | (c) << 8 | (d)) #else # define MAKE_ID(a, b, c, d) (int(d) << 24 | int(c) << 16 | (b) << 8 | (a)) #endif