artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c53ff86
)
Fix unintended comparison between signed and unsigned integer.
author
kettenis
<kettenis@openbsd.org>
Tue, 2 Jul 2024 19:59:54 +0000
(19:59 +0000)
committer
kettenis
<kettenis@openbsd.org>
Tue, 2 Jul 2024 19:59:54 +0000
(19:59 +0000)
C type conversion rules are hard, let's go shopping.
ok patrick@
sys/arch/arm64/arm64/cpu.c
patch
|
blob
|
history
diff --git
a/sys/arch/arm64/arm64/cpu.c
b/sys/arch/arm64/arm64/cpu.c
index
925ccfb
..
ae17940
100644
(file)
--- a/
sys/arch/arm64/arm64/cpu.c
+++ b/
sys/arch/arm64/arm64/cpu.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: cpu.c,v 1.12
2 2024/07/02 10:25:16
kettenis Exp $ */
+/* $OpenBSD: cpu.c,v 1.12
3 2024/07/02 19:59:54
kettenis Exp $ */
/*
* Copyright (c) 2016 Dale Rahn <drahn@dalerahn.com>
@@
-2005,7
+2005,7
@@
cpu_psci_init(struct cpu_info *ci)
*/
len = OF_getproplen(node, "domain-idle-states");
- if (len < sizeof(uint32_t))
+ if (len <
(int)
sizeof(uint32_t))
return;
states = malloc(len, M_TEMP, M_WAITOK);