diff --git a/src/node_crypto.cc b/src/node_crypto.cc index b37b7e62c2730b..2bdda4566dd99f 100644 --- a/src/node_crypto.cc +++ b/src/node_crypto.cc @@ -2910,7 +2910,7 @@ void CipherBase::SetAuthTag(const FunctionCallbackInfo& args) { } } - // Note: we don't use std::max() here to work around a header conflict. + // Note: we don't use std::min() here to work around a header conflict. cipher->auth_tag_len_ = tag_len; if (cipher->auth_tag_len_ > sizeof(cipher->auth_tag_)) cipher->auth_tag_len_ = sizeof(cipher->auth_tag_);