[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));
|
oxReturnError(model(&handler, t));
|
||||||
a.deallocate(t, 1);
|
a.deallocate(t, 1);
|
||||||
} else {
|
} else {
|
||||||
T *t = reinterpret_cast<T*>(ox_alloca(sizeof(T)));
|
auto t = ox_malloca(sizeof(T), T);
|
||||||
oxReturnError(model(&handler, t));
|
oxReturnError(model(&handler, t.get()));
|
||||||
}
|
}
|
||||||
return writer.definition();
|
return writer.definition();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user