From 3f6193914faeba793a17cb1ffc659e495c4aa1ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nils=20O=2E=20Sel=C3=A5sdal?= Date: Thu, 21 Feb 2013 21:51:35 +0100 Subject: [PATCH] Cosmetic ucore_bcd changes --- src/ucore_bcd.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/ucore_bcd.c b/src/ucore_bcd.c index 3dd978c..cfdf373 100644 --- a/src/ucore_bcd.c +++ b/src/ucore_bcd.c @@ -42,10 +42,8 @@ uc_bcd2ascii(const unsigned char *bcd, size_t bcdlen, char *asciiout) size_t idx = 0; for (i = 0; i < bcdlen; i++) { - asciiout[idx] = hex[bcd[i] & 0xf]; - idx++; - asciiout[idx] = hex[(bcd[i] & 0xf0) >> 4]; - idx++; + asciiout[idx++] = hex[bcd[i] & 0xf]; + asciiout[idx++] = hex[(bcd[i] & 0xf0) >> 4]; } asciiout[idx] = 0;