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