mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 12:32:52 +00:00
These warnings aren't needed
This commit is contained in:
parent
e5f986d16d
commit
abf4e50e6d
@ -172,7 +172,7 @@ static void x11_set_window_pid(Display *dpy, Window win)
|
||||
errno = 0;
|
||||
if((scret = sysconf(_SC_HOST_NAME_MAX)) == -1 && errno)
|
||||
return;
|
||||
if((hostname = malloc(scret + 1)) == NULL)
|
||||
if((hostname = (char*)malloc(scret + 1)) == NULL)
|
||||
return;
|
||||
|
||||
if(gethostname(hostname, scret + 1) == -1)
|
||||
|
@ -396,7 +396,7 @@ int filestream_read_file(const char *path, void **buf, ssize_t *len)
|
||||
|
||||
if (!content_buf)
|
||||
goto error;
|
||||
if ((size_t)(content_buf_size + 1) != (content_buf_size + 1))
|
||||
if ((int64_t)(size_t)(content_buf_size + 1) != (content_buf_size + 1))
|
||||
goto error;
|
||||
|
||||
ret = filestream_read(file, content_buf, (int64_t)content_buf_size);
|
||||
|
Loading…
x
Reference in New Issue
Block a user