File: 0011-build.patch

package info (click to toggle)
tilemaker 3.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 83,488 kB
  • sloc: cpp: 29,461; ansic: 12,510; makefile: 229; ruby: 77; sh: 43
file content (25 lines) | stat: -rw-r--r-- 810 bytes parent folder | download
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
From f7f53b304be9ff81eb78f4f69860b4cbcf689973 Mon Sep 17 00:00:00 2001
From: Colin Dellow <cldellow@gmail.com>
Date: Sun, 21 Jan 2024 12:55:59 -0500
Subject: build

---
 src/helpers.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/helpers.cpp b/src/helpers.cpp
index 82a4f77..69aa785 100644
--- a/src/helpers.cpp
+++ b/src/helpers.cpp
@@ -176,7 +176,7 @@ std::vector<OffsetAndLength> getNewlineChunks(const std::string &filename, uint6
 	std::vector<OffsetAndLength> rv;
 
 	const uint64_t size = getFileSize(filename);
-	const uint64_t chunkSize = std::max(size / chunks, 1ul);
+	const uint64_t chunkSize = std::max<uint64_t>(size / chunks, 1ul);
 	FILE* fp = fopen(filename.c_str(), "r");
 
 	// Our approach is naive: skip chunkSize bytes, scan for a newline, repeat.
-- 
2.47.3