[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Macro Usage
From: |
Marcus G. Daniels |
Subject: |
Re: Macro Usage |
Date: |
25 Apr 1999 10:08:34 -0700 |
>>>>> "XH" == xueyue <address@hidden> writes:
XH> [growthSchedule at: time+growthInterval
XH> createActionTo: foodSpace
XH> message: M(putValue:atX:Y:):1:x:y];
XH> egcs -c -Wno-import -Wno-protocol -g -O2 -fno-inline -D_GNU_SOURCE
XH> -I/usr/include/swarm ModelSwarm.m
XH> ModelSwarm.m: In function `_i_ModelSwarm__scheduleGrowthAtX_Y_':
XH> ModelSwarm.m:191: warning: passing arg 4 of
XH> `at:createActionTo:message::::' makes pointer from integer without a cast
XH> ModelSwarm.m:191: warning: passing arg 5 of
XH> `at:createActionTo:message::::' makes pointer from integer without a cast
XH> ModelSwarm.m:191: warning: passing arg 6 of
XH> `at:createActionTo:message::::' makes pointer from integer without a cast
To avoid warnings, use "(id) 1 : (id) x : (id) y" instead of "1:x:y".
The reason this works is that integers and pointers are the same
size on most machines.
==================================
Swarm-Support is for discussion of the technical details of the day
to day usage of Swarm. For list administration needs (esp.
[un]subscribing), please send a message to <address@hidden>
with "help" in the body of the message.
- Macro Usage, xueyue, 1999/04/25
- Re: Macro Usage,
Marcus G. Daniels <=