Fixed escape char bug

This commit is contained in:
Mark Qvist 2014-04-16 17:28:16 +02:00
parent 9637efd46f
commit 7b5495b767
7 changed files with 38 additions and 23 deletions

View file

@ -38,7 +38,7 @@ static const char *state_names[] = {
};
#else
#define LOG(...) /* no-op */
#define ASSERT(X) /* no-op */
//#define ASSERT(X) /* no-op */
#endif
// Encoder flags
@ -315,7 +315,6 @@ static HSE_state st_step_search(heatshrink_encoder *hse) {
LOG("ss Found match of %d bytes at %d\n", match_length, match_pos);
hse->match_pos = match_pos;
hse->match_length = match_length;
ASSERT(match_pos < 1 << hse->window_sz2 /*window_length*/);
return HSES_YIELD_TAG_BIT;
}