Message48897
| Author |
funny_falcon |
| Recipients |
| Date |
2005年10月24日.07:07:15 |
| SpamBayes Score |
| Marked as misclassified |
| Message-id |
| In-reply-to |
| Content |
Logged In: YES
user_id=1290388
Instead of:
overflowed:
/* spool through remaining characters */
while ((c = Py_CHARMASK(*str)) != '0円')
str ++;
Shoold be
while ((c = Py_CHARMASK(*str)) != '0円') {
c = digitlookup[c];
if (c < 0 || c >= base) /* non-"digit" character */
break;
str++;
}
And why not
static int digitlookup[] = {
37, 37, 37 ......
};
and
if (c >= base) break;
|
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2007年08月23日 15:44:18 | admin | link | issue1335972 messages |
| 2007年08月23日 15:44:18 | admin | create |
|