summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2021-09-27 00:07:33 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2021-09-27 23:41:18 +0300
commit348df7bc4b5d5281e50c42b5c44b125d7049eb57 (patch)
treed8e3f80a7a6ea356bdf109d4c3bd0f55479bfcaa /Documentation
parent1ec7072827931ac8a5ec7cf46292ff9510d10249 (diff)
Documentation: application-developer: Use correct type to store size
The return type of std::vector::size() is size_t. Use the same type, instead of unsigned int, to store its return value when retrieving the number of allocated buffers. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Paul Elder <paul.elder@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/guides/application-developer.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/guides/application-developer.rst b/Documentation/guides/application-developer.rst
index 3de13060..41a7d883 100644
--- a/Documentation/guides/application-developer.rst
+++ b/Documentation/guides/application-developer.rst
@@ -278,7 +278,7 @@ as the parameter of the ``FrameBufferAllocator::buffers()`` function.
return -ENOMEM;
}
- unsigned int allocated = allocator->buffers(cfg.stream()).size();
+ size_t allocated = allocator->buffers(cfg.stream()).size();
std::cout << "Allocated " << allocated << " buffers for stream" << std::endl;
}