Skip to content

Commit 8dfbde4

Browse files
committed
-
1 parent 97635e0 commit 8dfbde4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/cTools.cpp

+2-3
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,8 @@ std::wstring ct::UTF8Decode(const std::string& str) {
117117
}
118118

119119
int64_t ct::EncodeId(const std::string& vArr) {
120-
if (vArr.empty() || vArr.size() != 8U) {
121-
return 0;
122-
}
120+
assert(!vArr.empty());
121+
assert(vArr.size() != 8U);
123122
return vArr[0] | //
124123
(vArr[1] << 8) | //
125124
(vArr[2] << 16) | //

0 commit comments

Comments
 (0)