[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



commit 1e5cd1c7d6f45456c5e7c1b288e5e02e7c02b377
Author: Robert Ransom <rransom.8774@xxxxxxxxx>
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
    */

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits