You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by st...@apache.org on 2016/01/30 15:50:45 UTC
svn commit: r1727707 - /subversion/trunk/subversion/libsvn_fs_fs/id.c
Author: stefan2
Date: Sat Jan 30 14:50:44 2016
New Revision: 1727707
URL: http://svn.apache.org/viewvc?rev=1727707&view=rev
Log:
* subversion/libsvn_fs_fs/id.c
(locale_independent_strtol): Clarify comment. No functional change.
Modified:
subversion/trunk/subversion/libsvn_fs_fs/id.c
Modified: subversion/trunk/subversion/libsvn_fs_fs/id.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_fs_fs/id.c?rev=1727707&r1=1727706&r2=1727707&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_fs_fs/id.c (original)
+++ subversion/trunk/subversion/libsvn_fs_fs/id.c Sat Jan 30 14:50:44 2016
@@ -82,9 +82,11 @@ locale_independent_strtol(long *result_p
next = result * 10 + c;
- /* Overflow check. In case of an overflow, NEXT is 0..9.
- * In the non-overflow case, RESULT is either >= 10 or RESULT and NEXT
- * are both 0. */
+ /* Overflow check. In case of an overflow, NEXT is 0..9 and RESULT
+ * is much larger than 10. We will then return FALSE.
+ *
+ * In the non-overflow case, NEXT is >= 10 * RESULT but never smaller.
+ * We will continue the loop in that case. */
if (next < result)
return FALSE;