summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIru Cai <mytbk920423@gmail.com>2018-10-01 00:30:37 +0800
committerIru Cai <mytbk920423@gmail.com>2018-10-01 00:30:37 +0800
commit9b9ddc42920bcea505d76f3cf137b64437ceda6a (patch)
tree1222249034b079f07f3b298ce4cd8ae827033283
parent1d3fe0226f6fb8243bb6d2b8ddd8a5daee298a4b (diff)
downloadrich4-9b9ddc42920bcea505d76f3cf137b64437ceda6a.tar.xz
beautify mkf_decompress
-rw-r--r--csrc/mkf_decompress.c17
1 files changed, 6 insertions, 11 deletions
diff --git a/csrc/mkf_decompress.c b/csrc/mkf_decompress.c
index cd0218c..432b30d 100644
--- a/csrc/mkf_decompress.c
+++ b/csrc/mkf_decompress.c
@@ -402,18 +402,13 @@ static void cfcn_45511b(size_t i)
gtables.tab3[cx / 2 + 1] = ebx;
}
- tmp = ax;
- ax = cx;
- cx = tmp;
-
- gtables.tab3[cx / 2] = _edi;
- if (cx < 0x502) {
- gtables.tab3[cx / 2 + 1] = _edi;
+ gtables.tab3[ax / 2] = _edi;
+ if (ax < 0x502) {
+ gtables.tab3[ax / 2 + 1] = _edi;
}
- gtables.tab2[ebx / 2] = ax;
- gtables.tab2[_edi / 2] = cx;
- ebx = _edi & 0xffff;
- ebx = gtables.tab3[ebx / 2];
+ gtables.tab2[ebx / 2] = cx;
+ gtables.tab2[_edi / 2] = ax;
+ ebx = gtables.tab3[_edi / 2];
} while (ebx);
}