aboutsummaryrefslogtreecommitdiff
path: root/src/node_buffer.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/node_buffer.cc')
-rw-r--r--src/node_buffer.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/node_buffer.cc b/src/node_buffer.cc
index 57bfb87de0..1ce1dd5f1f 100644
--- a/src/node_buffer.cc
+++ b/src/node_buffer.cc
@@ -209,6 +209,7 @@ inline MUST_USE_RESULT bool ParseArrayIndex(Local<Value> arg,
// Check that the result fits in a size_t.
const uint64_t kSizeMax = static_cast<uint64_t>(static_cast<size_t>(-1));
+ // coverity[pointless_expression]
if (static_cast<uint64_t>(tmp_i) > kSizeMax)
return false;