noodle: correct history req calculation

This commit is contained in:
Justin Viiret 2016-09-19 11:23:37 +10:00 committed by Matthew Barr
parent 8869dee643
commit 98c791dc6e
2 changed files with 2 additions and 2 deletions

View File

@ -523,7 +523,7 @@ bool isNoodleable(const vector<hwlmLiteral> &lits,
} }
if (stream_control) { // nullptr if in block mode if (stream_control) { // nullptr if in block mode
if (lits.front().s.length() + 1 > stream_control->history_max) { if (lits.front().s.length() > stream_control->history_max + 1) {
DEBUG_PRINTF("length of %zu too long for history max %zu\n", DEBUG_PRINTF("length of %zu too long for history max %zu\n",
lits.front().s.length(), lits.front().s.length(),
stream_control->history_max); stream_control->history_max);

View File

@ -45,7 +45,7 @@ extern "C"
#endif #endif
UNUSED static const u32 SCRATCH_MAGIC = 0x544F4259; UNUSED static const u32 SCRATCH_MAGIC = 0x544F4259;
#define FDR_TEMP_BUF_SIZE 220 #define FDR_TEMP_BUF_SIZE 222
struct fatbit; struct fatbit;
struct hs_scratch; struct hs_scratch;