[ox/model] Fix MSVC warning

(synced from b7a1236bae)
This commit is contained in:
2023-11-14 20:19:25 -06:00
parent 63c9e331cf
commit b6a8a70f1e
+2 -2
View File
@@ -363,8 +363,8 @@ constexpr Result<DescriptorType*> buildTypeDef(TypeStore *typeStore) noexcept {
oxReturnError(model(&handler, t));
a.deallocate(t, 1);
} else {
T *t = reinterpret_cast<T*>(ox_alloca(sizeof(T)));
oxReturnError(model(&handler, t));
auto t = ox_malloca(sizeof(T), T);
oxReturnError(model(&handler, t.get()));
}
return writer.definition();
}