summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/trans/codegen_c.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/trans/codegen_c.cpp b/src/trans/codegen_c.cpp
index 8c0a08d4..5793fbc6 100644
--- a/src/trans/codegen_c.cpp
+++ b/src/trans/codegen_c.cpp
@@ -1752,7 +1752,7 @@ namespace {
emit_lvalue(e.args.at(0)); m_of << ".META * sizeof("; emit_ctype(*te->inner); m_of << ")";
}
else if( inner_ty == ::HIR::CoreType::Str ) {
- if( ! ty.m_data.is_Slice() ) {
+ if( ! ty.m_data.is_Primitive() ) {
m_of << "sizeof("; emit_ctype(ty); m_of << ") + ";
}
emit_lvalue(e.args.at(0)); m_of << ".META";