From bb718dcf211801c8b59d06dd26ce131ef97d1301 Mon Sep 17 00:00:00 2001 From: "zik.saleeba" Date: Sat, 10 Oct 2009 18:06:17 +0000 Subject: [PATCH] Turning on NATIVE_POINTERS by default. Fixed a minor warning in pointer assignment. git-svn-id: http://picoc.googlecode.com/svn/trunk@339 21eae674-98b7-11dd-bd71-f92a316d2d60 --- Makefile | 2 +- expression.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 498ab38..34b7e52 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ CC=gcc -CFLAGS=-Wall -pedantic -g -DUNIX_HOST +CFLAGS=-Wall -pedantic -g -DUNIX_HOST -DNATIVE_POINTERS LIBS=#-lm TARGET = picoc diff --git a/expression.c b/expression.c index 4d5600e..7f96da0 100644 --- a/expression.c +++ b/expression.c @@ -274,7 +274,7 @@ void ExpressionAssignToPointer(struct ParseState *Parser, struct Value *ToValue, else if (AllowPointerCoercion && IS_NUMERIC_COERCIBLE(FromValue)) { /* assign integer to native pointer */ - ToValue->Val->NativePointer = COERCE_INTEGER(FromValue); + ToValue->Val->NativePointer = (void *)COERCE_INTEGER(FromValue); } #endif else