(name2number): rename base to num to avoid shadowing

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15425 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2005-06-16 19:12:55 +00:00
parent 8ab32b1cdd
commit b5454e78eb

View File

@@ -145,7 +145,7 @@ static long
name2number(const char *str)
{
const char *p;
long base = 0;
long num = 0;
const char *x = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
"abcdefghijklmnopqrstuvwxyz0123456789_";
if(strlen(str) > 4) {
@@ -158,12 +158,12 @@ name2number(const char *str)
yyerror("invalid character in table name");
return 0;
}
base = (base << 6) + (q - x) + 1;
num = (num << 6) + (q - x) + 1;
}
base <<= 8;
if(base > 0x7fffffff)
base = -(0xffffffff - base + 1);
return base;
num <<= 8;
if(num > 0x7fffffff)
num = -(0xffffffff - num + 1);
return num;
}
void