mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-01 23:07:45 +08:00
Fixed a few additional sizeof locations
This commit is contained in:
@@ -370,7 +370,7 @@ static int CPU_haveARMSIMD(void)
|
|||||||
fd = open("/proc/self/auxv", O_RDONLY | O_CLOEXEC);
|
fd = open("/proc/self/auxv", O_RDONLY | O_CLOEXEC);
|
||||||
if (fd >= 0) {
|
if (fd >= 0) {
|
||||||
Elf32_auxv_t aux;
|
Elf32_auxv_t aux;
|
||||||
while (read(fd, &aux, sizeof aux) == sizeof aux) {
|
while (read(fd, &aux, sizeof(aux)) == sizeof(aux)) {
|
||||||
if (aux.a_type == AT_PLATFORM) {
|
if (aux.a_type == AT_PLATFORM) {
|
||||||
const char *plat = (const char *)aux.a_un.a_val;
|
const char *plat = (const char *)aux.a_un.a_val;
|
||||||
if (plat) {
|
if (plat) {
|
||||||
|
|||||||
Reference in New Issue
Block a user