[tor-commits] [tor/master] Fix comment typo in tor_memeq

nickm at torproject.org nickm at torproject.org
Mon Sep 17 15:16:44 UTC 2012


commit 1e5cd1c7d6f45456c5e7c1b288e5e02e7c02b377
Author: Robert Ransom <rransom.8774 at gmail.com>
Date:   Mon Sep 17 11:13:09 2012 -0400

    Fix comment typo in tor_memeq
---
 src/common/di_ops.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/common/di_ops.c b/src/common/di_ops.c
index 7683c59..418d6e3 100644
--- a/src/common/di_ops.c
+++ b/src/common/di_ops.c
@@ -123,7 +123,7 @@ tor_memeq(const void *a, const void *b, size_t sz)
    *
    * If any_difference != 0:
    *            0 < any_difference < 256, so
-   *            0 < any_difference - 1 < 255
+   *            0 <= any_difference - 1 < 255
    *            (any_difference - 1) >> 8 == 0
    *            1 & ((any_difference - 1) >> 8) == 0
    */



More information about the tor-commits mailing list