Changeset 10502

Show
Ignore:
Timestamp:
03/29/09 02:38:25 (17 months ago)
Author:
fancy
Message:

修正部分 ID 无法被自动补全的 bug。请注意:升级需要将站点完全重启,包括 shm。

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/kbs_bbs/libBBS/ucache.c

    r10439 r10502  
    216216        len--; 
    217217    } 
    218     n1 = (n1 + n2 % UCACHE_HASHBSIZE) % UCACHE_HASHSIZE + 1; 
     218    n1 = (n1 - 1 + n2 % UCACHE_HASHBSIZE) % UCACHE_HASHSIZE + 1; 
    219219    return n1; 
    220220}