File acme-fix_int_pointer_casts.patch of Package acme

--- src/mnemo.c.orig	2010-12-29 00:45:23.000000000 +0100
+++ src/mnemo.c	2010-12-29 00:45:42.000000000 +0100
@@ -5,6 +5,8 @@
 //
 // Mnemonics stuff
 
+#include <stdint.h>
+
 #include "alu.h"
 #include "config.h"
 #include "cpu.h"
@@ -875,8 +877,8 @@
 	// search for tree item
 	if(!Tree_easy_scan(tree, &node_body, dyna_buf))
 		return(FALSE);
-	code = ((int) node_body) & CODEMASK;	// get opcode or table index
-	imm_flag = ((int) node_body) & FLAGSMASK;	// get flag
+	code = ((intptr_t) node_body) & CODEMASK;	// get opcode or table index
+	imm_flag = ((intptr_t) node_body) & FLAGSMASK;	// get flag
 	switch(((long) node_body) >> GROUPSHIFT) {
 
 	// mnemonics with only implied addressing
openSUSE Build Service is sponsored by