Try using uintptr_t to make systems happy... stupid alignment

This commit is contained in:
jeblanchard 2008-06-06 01:41:13 +00:00
parent 8af58628fa
commit 5c83c20513
1 changed files with 2 additions and 1 deletions

View File

@ -18,6 +18,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include <stdint.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
@ -124,7 +125,7 @@ int FCEU_InitVirtualVideo(void)
if( sizeof(uint8*) == 4 )
{
unsigned m = (unsigned)XBuf;
uintptr_t m = (uintptr_t)XBuf;
m = ( 8 - m) & 7;
XBuf+=m;
}