Skip to content

Commit 75b989e

Browse files
[Support] Remove an unnecessary cast (NFC) (#147548)
I is already of int64_t.
1 parent 1a4d983 commit 75b989e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Support/JSON.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ bool Parser::parseNumber(char First, Value &Out) {
516516
errno = 0;
517517
int64_t I = std::strtoll(S.c_str(), &End, 10);
518518
if (End == S.end() && errno != ERANGE) {
519-
Out = int64_t(I);
519+
Out = I;
520520
return true;
521521
}
522522
// strtroull has a special handling for negative numbers, but in this

0 commit comments

Comments
 (0)