Skip to content

Commit 318be40

Browse files
LegNeatoclaude
andcommitted
Fix type mismatch in context_bridge.cc dispatch_context_message
The header context_bridge.h declares dispatch_context_message with std::size_t but context_bridge.cc was using std::uintptr_t, causing linker errors when the CXX-generated shims couldn't find the implementation. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 6f75a76 commit 318be40

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

rust/spirv-tools-ffi/src/context_bridge.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ namespace spvtools::ffi {
3737
// assemble_text_with_context are provided by source/text.cpp using internal APIs.
3838
// In standalone Rust builds (Bazel), we provide them here.
3939
#ifndef SPIRV_RUST_TARGET_ENV
40-
void dispatch_context_message(std::uintptr_t context_ptr, std::uint32_t level,
40+
void dispatch_context_message(std::size_t context_ptr, std::uint32_t level,
4141
bool has_source, rust::Str source,
4242
MessagePosition position, rust::Str message) {
4343
// This function is intentionally a no-op in standalone Rust builds.

0 commit comments

Comments
 (0)