You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, everyone
I've read source code kyotocabinet-1.2.79 recently, and there is a piece of code (at line 1936 file kcdirdb.h) that I can't clearly understand.
The code that compares input key with record's key: rec.ksiz == ksiz || !std::memcmp(rec.kbuf, kbuf, ksiz)
I think it must be something looks like: rec.ksiz == ksiz && !std::memcmp(rec.kbuf, kbuf, ksiz).
Thank you for reading my issue.
The text was updated successfully, but these errors were encountered:
Hi, everyone
I've read source code kyotocabinet-1.2.79 recently, and there is a piece of code (at line 1936 file kcdirdb.h) that I can't clearly understand.
The code that compares input key with record's key:
rec.ksiz == ksiz || !std::memcmp(rec.kbuf, kbuf, ksiz)
I think it must be something looks like:
rec.ksiz == ksiz && !std::memcmp(rec.kbuf, kbuf, ksiz)
.Thank you for reading my issue.
The text was updated successfully, but these errors were encountered: