fix table base calculation
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3165 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
$1 == "error_table" || $1 == "et" {
|
||||
name = $2
|
||||
base = 0
|
||||
for(i = 1; i <= 4; i++){
|
||||
for(i = 1; i <= length(name); i++){
|
||||
base = base * 64 + index("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_", substr(name, i, 1))
|
||||
}
|
||||
base *= 256
|
||||
|
@@ -8,7 +8,7 @@
|
||||
$1 == "error_table" || $1 == "et" {
|
||||
name = $2
|
||||
base = 0
|
||||
for(i = 1; i <= 4; i++){
|
||||
for(i = 1; i <= length(name); i++){
|
||||
base = base * 64 + index("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_", substr(name, i, 1))
|
||||
}
|
||||
base *= 256
|
||||
|
Reference in New Issue
Block a user