aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar wm4 <wm4@nowhere>2014-02-23 16:51:00 +0100
committerGravatar wm4 <wm4@nowhere>2014-02-23 16:51:00 +0100
commit82648ff2295a70e08883082e3e67bb306bcb239a (patch)
tree095adb52f9a61a54ff9dcf25a5481ec20482fb86
parent7dae316d50450bfb1c6af46ac8040f634fb09e26 (diff)
ta: fix comment
If this function could return the input value (i.e. the == case was correct), then macros like MP_GROW_ARRAY would have been incorrect. The implementation was correct though, so there's no bug.
-rw-r--r--ta/ta_utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ta/ta_utils.c b/ta/ta_utils.c
index a6b59f2e3d..7c66a14490 100644
--- a/ta/ta_utils.c
+++ b/ta/ta_utils.c
@@ -32,7 +32,7 @@ size_t ta_calc_array_size(size_t element_size, size_t count)
// This is used when an array has to be enlarged for appending new elements.
// Return a "good" size for the new array (in number of elements). This returns
-// a value >= nextidx, unless the calculation overflows, in which case SIZE_MAX
+// a value > nextidx, unless the calculation overflows, in which case SIZE_MAX
// is returned.
size_t ta_calc_prealloc_elems(size_t nextidx)
{