From 1a7a94c24c67d971e586887819918691e6f82389 Mon Sep 17 00:00:00 2001 From: Pavel Kirienko Date: Wed, 10 Jun 2015 13:20:15 +0300 Subject: [PATCH] Coverity 1304850 --- libuavcan/include/uavcan/marshal/array.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libuavcan/include/uavcan/marshal/array.hpp b/libuavcan/include/uavcan/marshal/array.hpp index b61c658ec7..c80f683252 100644 --- a/libuavcan/include/uavcan/marshal/array.hpp +++ b/libuavcan/include/uavcan/marshal/array.hpp @@ -630,7 +630,8 @@ class UAVCAN_EXPORT Array : public ArrayImpl } else // Lower-left triangle { - // Transposing one element + // Transposing one element, argument swapping is intentional + // coverity[swapped_arguments] *it++ = *(dst_row_major + Traits::computeElementIndexAtRowCol(col, row)); } }