ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/plugins/cfpython/cfpython_map.c
(Generate patch)

Comparing deliantra/server/plugins/cfpython/cfpython_map.c (file contents):
Revision 1.1.1.2 by elmex, Wed Feb 22 18:03:15 2006 UTC vs.
Revision 1.2 by elmex, Sun Aug 13 17:16:02 2006 UTC

193 return Crossfire_Map_wrap(cf_map_get_property(map->map,CFAPI_MAP_PROP_NEXT)); 193 return Crossfire_Map_wrap(cf_map_get_property(map->map,CFAPI_MAP_PROP_NEXT));
194} 194}
195 195
196static int Map_InternalCompare(Crossfire_Map* left, Crossfire_Map* right) 196static int Map_InternalCompare(Crossfire_Map* left, Crossfire_Map* right)
197{ 197{
198 return left->map < right->map ? -1 : ( left->map == right->map ? 0 : 1 ); 198 return (int)left->map - (int)right->map;
199} 199}
200 200
201/* Legacy code: convert to long so that non-object functions work correctly */ 201/* Legacy code: convert to long so that non-object functions work correctly */
202static PyObject* Crossfire_Map_Long( PyObject* obj ) 202static PyObject* Crossfire_Map_Long( PyObject* obj )
203{ 203{

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines