Skip to content

Commit

Permalink
Fix comment in doNegateSlowPath referring to bitwise not
Browse files Browse the repository at this point in the history
Reviewed By: tmikov

Differential Revision: D41419739

fbshipit-source-id: 760062d80fcd269e35f25c9305fbbabf679ba6fb
  • Loading branch information
neildhar authored and facebook-github-bot committed Nov 20, 2022
1 parent 003e9db commit f658af6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/VM/Interpreter-slowpaths.cpp
Original file line number Diff line number Diff line change
@@ -578,7 +578,7 @@ CallResult<HermesValue> doNegateSlowPath(Runtime &runtime, Handle<> src) {
if (LLVM_LIKELY(!numRes->isBigInt()))
return HermesValue::encodeDoubleValue(-numRes->getNumber());

// The result is a BigInt, perform a BigInt bitwise not.
// The result is a BigInt, perform a BigInt unary minus.
auto bigint = runtime.makeHandle(numRes->getBigInt());
return BigIntPrimitive::unaryMinus(runtime, bigint);
}

0 comments on commit f658af6

Please sign in to comment.