mirror of
https://github.com/nestriness/cdc-file-transfer.git
synced 2026-01-30 10:35:37 +02:00
Improve cdc_fuse_fs and path (#2)
Improve cdc_fuse_fs and path Improves the error handling in path so that std:error_codes are not assumed to be of system category, and also that their messages are displayed. Also improves debug messages in GameletComponent.
This commit is contained in:
@@ -78,7 +78,7 @@ bool ContentId::FromHexString(const std::string& str,
|
||||
std::string* hash = content_id->mutable_blake3_sum_160();
|
||||
hash->clear();
|
||||
hash->reserve(kHashSize);
|
||||
for (int n = 0; n < str.size(); n += 2) {
|
||||
for (size_t n = 0; n < str.size(); n += 2) {
|
||||
int high = HexToInt(str[n]);
|
||||
int low = HexToInt(str[n + 1]);
|
||||
if (high == -1 || low == -1) {
|
||||
|
||||
Reference in New Issue
Block a user