From 348df7bc4b5d5281e50c42b5c44b125d7049eb57 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Mon, 27 Sep 2021 00:07:33 +0300 Subject: 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 Reviewed-by: Paul Elder Reviewed-by: Kieran Bingham --- Documentation/guides/application-developer.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Documentation') 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; } -- cgit v1.2.1