Skip to content

Commit 4ed18fa

Browse files
author
devsh
committed
fix integer overflow issue
1 parent 6e05533 commit 4ed18fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/include/nbl/examples/geometry/CSimpleDebugRenderer.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ class CSimpleDebugRenderer final : public core::IReferenceCounted
246246
core::vector<IGPUDescriptorSet::SWriteDescriptorSet> writes;
247247
core::vector<IGPUDescriptorSet::SDescriptorInfo> infos;
248248
bool anyFailed = false;
249-
auto allocateUTB = [&](const IGeometry<const IGPUBuffer>::SDataView& view)->uint8_t
249+
auto allocateUTB = [&](const IGeometry<const IGPUBuffer>::SDataView& view)->decltype(SubAllocatedDescriptorSet::invalid_value)
250250
{
251251
if (!view)
252252
return SPackedGeometry::MissingView;

0 commit comments

Comments
 (0)