[Cython] Make positive int literals unsigned long?

Stefan Behnel stefan_ml at behnel.de
Mon Aug 4 16:28:51 CEST 2008


Dag Sverre Seljebotn wrote:
> If we make positive int literals unsigned long rather than plain long,
> constant-index buffer lookups are going to be optimized for free. Is
> there going to be any ill side-effects from doing this?
>
> (If not, I can always special-case int literals used for buffer lookups.)

What about enabling this, adding a test module dedicated to integer
literals, casting and arithmetic, and running the (complete) test suite
with

    -Wall -pedantic

?

Stefan



More information about the Cython-dev mailing list