aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSean McGovern <gseanmcg@gmail.com>2024-11-03 21:58:43 -0500
committerBrad Smith <brad@comstyle.com>2024-11-03 22:05:06 -0500
commitc325f9c619b38614ab6e339cefacd596266db471 (patch)
treedbfbb131ba89f42161d3596c0fdec8b0c99f0240
parent40878dfb11eaa357ed5c09f610ea444106e8282b (diff)
downloadffmpeg-c325f9c619b38614ab6e339cefacd596266db471.tar.gz
libavutil/ppc: defines involving bit shifts should be unsigned
Otherwise, these can overflow at the boundaries of the integer type. Signed-off-by: Brad Smith <brad@comstyle.com>
-rw-r--r--libavutil/ppc/cpu.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavutil/ppc/cpu.c b/libavutil/ppc/cpu.c
index 62d495ec1d..9f9c073434 100644
--- a/libavutil/ppc/cpu.c
+++ b/libavutil/ppc/cpu.c
@@ -53,9 +53,9 @@
#define AT_HWCAP2 26
#endif
-#define HWCAP_PPC_VSX (1 << 7)
-#define HWCAP_PPC_ALTIVEC (1 << 28)
-#define HWCAP2_PPC_ARCH_2_07 (1 << 31)
+#define HWCAP_PPC_VSX (1U << 7)
+#define HWCAP_PPC_ALTIVEC (1U << 28)
+#define HWCAP2_PPC_ARCH_2_07 (1U << 31)
/**
* This function MAY rely on signal() or fork() in order to make sure AltiVec