mirror of
https://github.com/libretro/RetroArch
synced 2025-03-03 04:14:00 +00:00
Cleanups
This commit is contained in:
parent
ebce936557
commit
845b30131f
@ -2959,7 +2959,7 @@ found:
|
||||
/* Checks for the existence of a headered Lynx file.
|
||||
Unheadered files fall back to GENERIC_MD5. */
|
||||
|
||||
if (coro->len <= lynx_header_len ||
|
||||
if (coro->len <= (unsigned)lynx_header_len ||
|
||||
memcmp("LYNX", (void *)coro->data, 5) != 0)
|
||||
{
|
||||
coro->gameid = 0;
|
||||
|
@ -406,7 +406,7 @@ static void gl2_renderchain_check_fbo_dimensions(
|
||||
unsigned i;
|
||||
|
||||
/* Check if we have to recreate our FBO textures. */
|
||||
for (i = 0; i < chain->fbo_pass; i++)
|
||||
for (i = 0; i < (unsigned)chain->fbo_pass; i++)
|
||||
{
|
||||
struct video_fbo_rect *fbo_rect = &gl->fbo_rect[i];
|
||||
if (fbo_rect)
|
||||
@ -775,7 +775,7 @@ static bool gl_create_fbo_targets(gl_t *gl, gl2_renderchain_data_t *chain)
|
||||
glBindTexture(GL_TEXTURE_2D, 0);
|
||||
gl2_gen_fb(chain->fbo_pass, chain->fbo);
|
||||
|
||||
for (i = 0; i < chain->fbo_pass; i++)
|
||||
for (i = 0; i < (unsigned)chain->fbo_pass; i++)
|
||||
{
|
||||
GLenum status;
|
||||
|
||||
@ -1000,7 +1000,7 @@ static void gl2_renderchain_recompute_pass_sizes(
|
||||
glGetIntegerv(GL_MAX_TEXTURE_SIZE, &max_size);
|
||||
|
||||
/* Calculate viewports for FBOs. */
|
||||
for (i = 0; i < chain->fbo_pass; i++)
|
||||
for (i = 0; i < (unsigned)chain->fbo_pass; i++)
|
||||
{
|
||||
struct video_fbo_rect *fbo_rect = &gl->fbo_rect[i];
|
||||
struct gfx_fbo_scale *fbo_scale = &chain->fbo_scale[i];
|
||||
|
@ -4032,13 +4032,13 @@ static int action_ok_open_uwp_permission_settings(const char *path,
|
||||
static int action_ok_open_picker(const char *path,
|
||||
const char *label, unsigned type, size_t idx, size_t entry_idx)
|
||||
{
|
||||
char* new_path;
|
||||
int ret;
|
||||
#ifdef __WINRT__
|
||||
new_path = uwp_trigger_picker();
|
||||
char *new_path = uwp_trigger_picker();
|
||||
if (!new_path)
|
||||
return 0; /* User aborted */
|
||||
#else
|
||||
char *new_path = NULL;
|
||||
retro_assert(false);
|
||||
#endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user