Ignore:
Timestamp:
02/20/13 14:23:17 (14 months ago)
Author:
astaric
Branch:
default
Message:

Fixes for compiling with clang.

export CPPFLAGS=-Wno-address-of-temporary should no longer be needed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/pyxtract/pyxtract.py

    r10478 r11338  
    810810    externsfile.write('#define PyOr%s_Check(op) PyObject_TypeCheck(op, (PyTypeObject *)&PyOr%s_Type)\n' % (type, type)) 
    811811    if classdefs[type].datastructure == "TPyOrange": 
    812       externsfile.write('#define PyOrange_As%s(op) (*(GCPtr< T%s > *)(void *)(&PyOrange_AS_Orange(op)))\n' % (type, type)) 
     812      externsfile.write('#define PyOrange_As%s(op) (static_cast<GCPtr< T%s > >(PyOrange_AS_Orange(op)))\n' % (type, type)) 
    813813      externsfile.write('\n') 
    814814 
Note: See TracChangeset for help on using the changeset viewer.