This commit is contained in:
Twinaphex 2018-09-01 01:03:46 +02:00
parent 10f374182f
commit 65535a1259
2 changed files with 3 additions and 3 deletions

View File

@ -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++)

View File

@ -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))