X-Git-Url: http://j8takagi.net/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fstruct.c;h=a617cecbcdae949bc3629badf025c92b429b186b;hb=ea0991b89b1bfe8e1bfa33a2ffec979e702a06dc;hp=22a7df30cbfd3e507d97a581580b88e1f3d37e1e;hpb=a18fa159a8b538ca0e6513a0c2051ac178302bd6;p=YACASL2.git diff --git a/src/struct.c b/src/struct.c index 22a7df3..a617cec 100644 --- a/src/struct.c +++ b/src/struct.c @@ -64,7 +64,7 @@ static int comet2cmdsize = ARRAYSIZE(comet2cmd); * ハッシュ表のサイズ */ enum { - CMDTABSIZE = 39, + CMDTABSIZE = 41, }; /** @@ -122,7 +122,7 @@ bool create_cmdtable(CMDTAB_HASH hash) if(hash == HASH_CMDTYPE) { hashval = hash_cmdtype(comet2cmd[i].name, comet2cmd[i].type); } else if(hash == HASH_CODE) { - hashval = hash_code((&comet2cmd[i])->code); + hashval = hash_code(comet2cmd[i].code); } p->next = cmdtab[hash][hashval]; cmdtab[hash][hashval] = p;