libretro: fix uint8*/void* mismatch (Themaister)

This commit is contained in:
OV2 2012-04-15 21:46:09 +02:00
parent 9551890d0d
commit 38f7459ee7
1 changed files with 4 additions and 4 deletions

View File

@ -581,17 +581,17 @@ size_t retro_serialize_size()
return S9xFreezeSize();
}
bool retro_serialize(uint8_t *data, unsigned size)
bool retro_serialize(void *data, size_t size)
{
if (S9xFreezeGameMem(data,size) == FALSE)
if (S9xFreezeGameMem((uint8_t*)data,size) == FALSE)
return false;
return true;
}
bool retro_unserialize(const uint8_t* data, unsigned size)
bool retro_unserialize(const void* data, size_t size)
{
if (S9xUnfreezeGameMem(data,size) != SUCCESS)
if (S9xUnfreezeGameMem((const uint8_t*)data,size) != SUCCESS)
return false;
return true;
}