Skip to content

Commit

Permalink
Fix missing offset from int8/uint8 case
Browse files Browse the repository at this point in the history
  • Loading branch information
juliusikkala committed Jan 10, 2025
1 parent 674e41b commit da00b5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/slang/slang-ir-any-value-marshalling.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -875,7 +875,7 @@ SlangInt _getAnyValueSizeRaw(IRType* type, SlangInt offset)
return alignUp(offset, 2) + 2;
case kIROp_UInt8Type:
case kIROp_Int8Type:
return 1;
return offset + 1;
case kIROp_VectorType:
{
auto vectorType = static_cast<IRVectorType*>(type);
Expand Down

0 comments on commit da00b5b

Please sign in to comment.