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:
Johan Danielsson
1997-08-26 20:42:49 +00:00
parent a1191da05f
commit 31e1451952
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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