CXX_BUILD fixes

This commit is contained in:
twinaphex 2016-09-16 13:38:06 +02:00
parent e4cf93cff4
commit a55feae619
2 changed files with 3 additions and 2 deletions

View File

@ -235,8 +235,9 @@ void menu_entry_reset(uint32_t i)
void menu_entry_get_value(uint32_t i, void *data, char *s, size_t len)
{
file_list_t *list = (void*)data;
file_list_t *list = (file_list_t*)data;
menu_entry_t entry = {{0}};
menu_entry_get(&entry, 0, i, list, true);
strlcpy(s, entry.value, len);
}

View File

@ -372,5 +372,5 @@ uint32_t netplay_delta_frame_crc(netplay_t *netplay, struct delta_frame *delta)
{
if (!netplay->state_size)
return 0;
return crc32(0L, delta->state, netplay->state_size);
return crc32(0L, (const unsigned char*)delta->state, netplay->state_size);
}