Skip to content

Commit 4777651

Browse files
jan-wassenbergcopybara-github
authored andcommitted
Minor cleanup, Windows+Bazel build fixes
add app.h comment compress-inl: remove unused typedef gemma-inl: add missing HWY_ATTR separate sum-inl.h and basics.h headers update include pragmas update dot_test thresholds update Highway version in Bazel for HWY_RCAST_ALIGNED fix PiperOrigin-RevId: 684398826
1 parent 2f0842c commit 4777651

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

hwy/contrib/thread_pool/topology.cc

+2-1
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,8 @@ void SetNodes(std::vector<Topology::LP>& lps) {
422422
const auto find = [buf200, &pos](char c) -> size_t {
423423
const char* found_ptr = strchr(buf200 + pos, c);
424424
if (found_ptr == nullptr) return kNotFound;
425-
const size_t found_pos = found_ptr - buf200;
425+
HWY_ASSERT(found_ptr >= buf200 + pos);
426+
const size_t found_pos = static_cast<size_t>(found_ptr - buf200);
426427
HWY_ASSERT(found_pos >= pos && buf200[found_pos] == c);
427428
return found_pos;
428429
};

0 commit comments

Comments
 (0)