chore: replace some NULL with nullptr + use "%zu" for printing some size_t data (#1457)

This commit is contained in:
akleine
2026-04-27 22:42:57 +08:00
committed by GitHub
parent b8bdffc199
commit 970c4a3312
6 changed files with 22 additions and 22 deletions
+1 -1
View File
@@ -62,7 +62,7 @@ void CLIPTokenizer::load_from_merges(const std::string& merges_utf8_str) {
}
vocab.push_back(utf8_to_utf32("<|startoftext|>"));
vocab.push_back(utf8_to_utf32("<|endoftext|>"));
LOG_DEBUG("vocab size: %llu", vocab.size());
LOG_DEBUG("vocab size: %zu", vocab.size());
int i = 0;
for (const auto& token : vocab) {
encoder[token] = i;