diff options
author | Roman Kiryanov <rkir@google.com> | 2024-06-18 15:45:28 -0700 |
---|---|---|
committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2024-06-19 12:52:21 +0200 |
commit | fc0870c180872d0f40e63507cc6bf8565ffd8d98 (patch) | |
tree | e71beaeef6c2dbcb179b039c6a0c541d41c438f6 /include/exec | |
parent | abd749b517827b3da38230f50a82a94fccfaddac (diff) |
exec: Make the MemOp enum cast explicit
Make the MemOp enum cast explicit to use the QEMU
headers with a C++ compiler.
Signed-off-by: Roman Kiryanov <rkir@google.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20240618224528.878425-1-rkir@google.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Diffstat (limited to 'include/exec')
-rw-r--r-- | include/exec/memop.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/exec/memop.h b/include/exec/memop.h index 06417ff361..f881fe7af4 100644 --- a/include/exec/memop.h +++ b/include/exec/memop.h @@ -161,7 +161,7 @@ static inline MemOp size_memop(unsigned size) /* Power of 2 up to 8. */ assert((size & (size - 1)) == 0 && size >= 1 && size <= 8); #endif - return ctz32(size); + return (MemOp)ctz32(size); } /* Big endianness from MemOp. */ |