[svn:parrot] r39841 - trunk/compilers/imcc
jkeenan at svn.parrot.org
jkeenan at svn.parrot.org
Tue Jun 30 11:00:06 UTC 2009
Author: jkeenan
Date: Tue Jun 30 11:00:05 2009
New Revision: 39841
URL: https://trac.parrot.org/parrot/changeset/39841
Log:
Applying patch submitted by mikehh to remedy two coding standards failures.
Modified:
trunk/compilers/imcc/pbc.c
Modified: trunk/compilers/imcc/pbc.c
==============================================================================
--- trunk/compilers/imcc/pbc.c Tue Jun 30 10:56:47 2009 (r39840)
+++ trunk/compilers/imcc/pbc.c Tue Jun 30 11:00:05 2009 (r39841)
@@ -1776,7 +1776,7 @@
errno = 0;
if (digits[0] == '0') {
- switch (toupper(digits[1])) {
+ switch (toupper((unsigned char)digits[1])) {
case 'B': base = 2; break;
case 'O': base = 8; break;
case 'X': base = 16; break;
@@ -1784,7 +1784,7 @@
}
}
- if ( base == 10 ) {
+ if (base == 10) {
i = strtol(digits, NULL, base);
}
else {
More information about the parrot-commits
mailing list