mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-22 21:02:39 +02:00
kernel/random: Avoid casting away const in the U8TO32_LITTLE macro
This macro is only ever used with const input data within chachaInit(), which causes -Wcast-qual warnings. This is trivial enough to fix, by preserving the qualifier within the cast.
This commit is contained in:
parent
4645ef7004
commit
a06bfb74a7
@ -20,7 +20,7 @@
|
||||
(*(u32*)(p) = (v))
|
||||
|
||||
#define U8TO32_LITTLE(p) \
|
||||
(*(u32*)(p))
|
||||
(*(const u32*)(p))
|
||||
|
||||
#define ROTATE(v,c) (ROTL32(v,c))
|
||||
#define XOR(v,w) ((v) ^ (w))
|
||||
|
Loading…
Reference in New Issue
Block a user