mirror of
https://github.com/libretro/RetroArch
synced 2024-12-28 18:31:05 +00:00
Cleanups
This commit is contained in:
parent
10f374182f
commit
65535a1259
@ -159,7 +159,7 @@ char *word_wrap(char* buffer, const char *string, int line_width, bool unicode)
|
||||
while (i < len)
|
||||
{
|
||||
unsigned counter;
|
||||
int pos = &buffer[i] - buffer;
|
||||
int pos = (int)(&buffer[i] - buffer);
|
||||
|
||||
/* copy string until the end of the line is reached */
|
||||
for (counter = 1; counter <= (unsigned)line_width; counter++)
|
||||
|
@ -193,8 +193,8 @@ libretro_vfs_implementation_file *retro_vfs_file_open_impl(const char *path, uns
|
||||
|
||||
#ifdef VFS_FRONTEND
|
||||
const char *dumb_prefix = "vfsonly://";
|
||||
int dumb_prefix_len = strlen(dumb_prefix);
|
||||
int path_len = strlen(path);
|
||||
int dumb_prefix_len = (int)strlen(dumb_prefix);
|
||||
int path_len = (int)strlen(path);
|
||||
|
||||
if (path_len >= dumb_prefix_len)
|
||||
if (!memcmp(path, dumb_prefix, dumb_prefix_len))
|
||||
|
Loading…
Reference in New Issue
Block a user