diff options
Diffstat (limited to 'lower-block-lines.patch')
-rw-r--r-- | lower-block-lines.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/lower-block-lines.patch b/lower-block-lines.patch new file mode 100644 index 0000000..6a59212 --- /dev/null +++ b/lower-block-lines.patch @@ -0,0 +1,27 @@ +--- a/brlaser-6/src/block.h ++++ b/brlaser-6/src/block.h +@@ -59,7 +59,7 @@ + + private: + static const unsigned max_block_size_ = 16350; +- static const unsigned max_lines_per_block_ = 64; ++ static const unsigned max_lines_per_block_ = 32; + + std::vector<std::vector<uint8_t>> lines_; + int line_bytes_; + +--- a/brlaser-6/test/test_block.cc ++++ b/brlaser-6/test/test_block.cc +@@ -37,10 +37,10 @@ + EXPECT(!b.empty()); + }, + +- "A block can contain 64 lines", ++ "A block can contain 32 lines", + [] { + block b; +- for (int i = 0; i < 64; ++i) { ++ for (int i = 0; i < 32; ++i) { + EXPECT(b.line_fits(1)); + b.add_line(vec(1)); + } |