From a89db3ccc32a570905e50fd51e7cb83321bbbada Mon Sep 17 00:00:00 2001 From: Joe Bryan Date: Thu, 10 Jan 2019 22:10:44 -0500 Subject: [PATCH] simplifies u3r_mug_words bytewidth loop --- noun/retrieve.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/noun/retrieve.c b/noun/retrieve.c index 6fdb8e651..9d45511ac 100644 --- a/noun/retrieve.c +++ b/noun/retrieve.c @@ -1506,14 +1506,12 @@ u3r_mug_string(const c3_c *a_c) c3_w u3r_mug_words(const c3_w* key_w, c3_w len_w) { - c3_w siz_w = 0; c3_w byt_w = 0; c3_w wor_w; - while ( siz_w < len_w ) { - wor_w = key_w[siz_w]; + while ( 0 < len_w ) { + wor_w = key_w[--len_w]; byt_w += _(u3a_is_cat(wor_w)) ? u3r_met(3, wor_w) : 4; - siz_w++; } return u3r_mug_bytes((c3_y*)key_w, byt_w);