Skip to content

Commit

Permalink
Merge PIVX-Project#13: Fix typo
Browse files Browse the repository at this point in the history
4a49647 Fix typo (Dimitris Apostolou)

Pull request description:

Tree-SHA512: c87e813cee15cd8e0b125e7889de5bf4f72d2233446714dfd92b29f9052d7543174641897ba503dde7553ffb26e4f16f46000888a3a95669a327a36b743c9e49
  • Loading branch information
MarcoFalke committed Oct 20, 2018
2 parents 7890db9 + 4a49647 commit 4577454
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/univalue_get.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ bool ParseInt32(const std::string& str, int32_t *out)
errno = 0; // strtol will not set errno if valid
long int n = strtol(str.c_str(), &endp, 10);
if(out) *out = (int32_t)n;
// Note that strtol returns a *long int*, so even if strtol doesn't report a over/underflow
// Note that strtol returns a *long int*, so even if strtol doesn't report an over/underflow
// we still have to check that the returned value is within the range of an *int32_t*. On 64-bit
// platforms the size of these types may be different.
return endp && *endp == 0 && !errno &&
Expand Down

0 comments on commit 4577454

Please sign in to comment.