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:
parent
8e735ef68f
commit
bb718dcf21
2
Makefile
2
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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue