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
This commit is contained in:
zik.saleeba 2009-10-10 18:06:17 +00:00
parent 8e735ef68f
commit bb718dcf21
2 changed files with 2 additions and 2 deletions

View file

@ -1,5 +1,5 @@
CC=gcc
CFLAGS=-Wall -pedantic -g -DUNIX_HOST
CFLAGS=-Wall -pedantic -g -DUNIX_HOST -DNATIVE_POINTERS
LIBS=#-lm
TARGET = picoc

View file

@ -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