summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIru Cai <mytbk920423@gmail.com>2018-10-01 00:01:43 +0800
committerIru Cai <mytbk920423@gmail.com>2018-10-01 00:19:26 +0800
commit1d3fe0226f6fb8243bb6d2b8ddd8a5daee298a4b (patch)
tree48f8568508a4f8cf3547cec9009ad88e6c8e1d9c
parentb89f60ffed354773d79e4d625e3760668c9698e6 (diff)
downloadrich4-1d3fe0226f6fb8243bb6d2b8ddd8a5daee298a4b.tar.xz
beautify mkf_decompress.c, the argument of cfcn_45511b changed
-rw-r--r--csrc/mkf_decompress.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/csrc/mkf_decompress.c b/csrc/mkf_decompress.c
index 0345daa..cd0218c 100644
--- a/csrc/mkf_decompress.c
+++ b/csrc/mkf_decompress.c
@@ -364,10 +364,10 @@ ctabs ctab_orig = {
ctabs gtables;
-static void cfcn_45511b(uint32_t ebx)
+static void cfcn_45511b(size_t i)
{
uint16_t ax, cx, tmp;
- ebx = gtables.tab4[ebx / 2];
+ uint16_t ebx = gtables.tab4[i];
do {
gtables.tab1[ebx / 2]++;
ax = gtables.tab1[ebx / 2];
@@ -422,7 +422,7 @@ static void cfcn_004550cc()
for (size_t i = 0; i < 321; i++) {
uint16_t cx = gtables.tab4[i];
if (gtables.tab1[cx/2] & 1) {
- cfcn_45511b(i * 2);
+ cfcn_45511b(i);
}
}
@@ -430,12 +430,12 @@ static void cfcn_004550cc()
gtables.tab1[i] >>= 1;
}
-static void cfcn_00455109(uint32_t ebx)
+static void cfcn_00455109(size_t i)
{
if (gtables.tab1[640] == 0x8000) {
cfcn_004550cc();
}
- cfcn_45511b(ebx);
+ cfcn_45511b(i);
}
static void cfcn_004551bb(const void *s, uint32_t *ecx, uint32_t *ebx)
@@ -456,7 +456,7 @@ static void cfcn_004551bb(const void *s, uint32_t *ecx, uint32_t *ebx)
*ecx = _c;
bx -= 641;
- cfcn_00455109(bx * 2);
+ cfcn_00455109(bx);
*ebx = bx;
}