Skip to content

Commit 32d916a

Browse files
committed
Ignore unions in ByteRepr for now
1 parent 0573f9c commit 32d916a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cpp2rust/converter/converter_lib.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ bool TypeImplementsByteRepr(clang::QualType qt) {
213213
return false;
214214
}
215215
if (rd->isUnion()) {
216-
return true;
216+
return false;
217217
}
218218
for (const auto *field : rd->fields()) {
219219
if (!TypeImplementsByteRepr(field->getType())) {

0 commit comments

Comments
 (0)