summaryrefslogtreecommitdiff
path: root/deflate_p.h
diff options
context:
space:
mode:
authorNathan Moinvaziri <nathan@nathanm.com>2020-01-07 19:09:34 -0800
committerHans Kristian Rosbach <hk-github@circlestorm.org>2020-02-07 10:44:20 +0100
commite0a711cdde1d0390a922f80b69e3b365533b34cf (patch)
treed5f71e2e28a08b5e6dde57959679198a324ec49e /deflate_p.h
parent550f98395c8677ae9b08ec39433f5137e5cea2c8 (diff)
Fixed formatting, 4 spaces for code intent, 2 spaces for preprocessor indent, initial function brace on the same line as definition, removed extraneous spaces and new lines.
Diffstat (limited to 'deflate_p.h')
-rw-r--r--deflate_p.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/deflate_p.h b/deflate_p.h
index b282bae..1e0b34d 100644
--- a/deflate_p.h
+++ b/deflate_p.h
@@ -36,12 +36,12 @@ static inline Pos insert_string_c(deflate_state *const s, const Pos str, unsigne
Pos head = s->head[s->ins_h];
if (head != str+idx) {
- s->prev[(str+idx) & s->w_mask] = head;
- s->head[s->ins_h] = str+idx;
- if (idx == count - 1)
- ret = head;
+ s->prev[(str+idx) & s->w_mask] = head;
+ s->head[s->ins_h] = str+idx;
+ if (idx == count - 1)
+ ret = head;
} else if (idx == count - 1) {
- ret = str + idx;
+ ret = str + idx;
}
}
return ret;