[ox/model] Fix MSVC warning
This commit is contained in:
parent
d386bc8c91
commit
b7a1236bae
4
deps/ox/src/ox/model/descwrite.hpp
vendored
4
deps/ox/src/ox/model/descwrite.hpp
vendored
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user