summaryrefslogtreecommitdiff
path: root/lower-block-lines.patch
blob: 6a59212a2bfa9f9b79223089d7d011494233031e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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));
     }