Dave Cole wrote: > The existing code for TicketSystem._format_link has the following check: > > if 0 < num <= 2 << 30: > > On my machine (with python 2.3), 2 << 30 is -2147483648. > > The code seems to magically work if that is changed to: > > if 0 < num <= 2L << 30: > > - Dave
Woops, right that's apparently the python 2.3 way: >>> 1 << 63 ...:1: FutureWarning: x<<y losing bits or changing sign will return a long in Python 2.4 and up -9223372036854775808 (same stuff for 1 << 31 on a 32-bits machine, I imagine) Was fixed right away in r4939 ;-) -- Christian --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Trac Development" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/trac-dev?hl=en -~----------~----~----~----~------~----~------~--~---
