From 59e2897cf65cb4e7ae4d81fe8b410efb8821fbdb Mon Sep 17 00:00:00 2001 From: leitner Date: Mon, 17 Apr 2006 06:04:17 +0000 Subject: [PATCH] add comments to possibly non-obvious code --- mult/range_arrayinbuf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mult/range_arrayinbuf.c b/mult/range_arrayinbuf.c index 2cf879b..b31c2c5 100644 --- a/mult/range_arrayinbuf.c +++ b/mult/range_arrayinbuf.c @@ -12,8 +12,8 @@ int range_arrayinbuf(const void* buf1,size_t len, alen=x; } else { unsigned long long t=(unsigned long long)elements*membersize; - alen=t; - if (alen!=t) return 0; + alen=t; /* this strips the upper 32 bits of t */ + if (alen!=t) return 0; /* if that changes something, we overflowed */ } return range_bufinbuf(buf1,len,arraystart,alen); }