[Git][debian-gis-team/mkgmap][upstream] New upstream version 0.0.0+svn4919

Bas Couwenberg (@sebastic) gitlab at salsa.debian.org
Wed May 1 04:25:06 BST 2024



Bas Couwenberg pushed to branch upstream at Debian GIS Project / mkgmap


Commits:
9beab52e by Bas Couwenberg at 2024-05-01T05:19:59+02:00
New upstream version 0.0.0+svn4919
- - - - -


2 changed files:

- resources/mkgmap-version.properties
- src/uk/me/parabola/imgfmt/sys/ImgFS.java


Changes:

=====================================
resources/mkgmap-version.properties
=====================================
@@ -1,2 +1,2 @@
-svn.version: 4918
-build.timestamp: 2024-03-06T07:04:17+0000
+svn.version: 4919
+build.timestamp: 2024-04-04T10:16:18+0100


=====================================
src/uk/me/parabola/imgfmt/sys/ImgFS.java
=====================================
@@ -268,7 +268,7 @@ public class ImgFS implements FileSystem {
 		int bestBlockSize = 0;
 		int reserved = 0;
 		int sizeInBlocks = 0;
-		int bestSize = Integer.MAX_VALUE;
+		long bestSize = Long.MAX_VALUE;
 
 		for (int blockSize = param.getBlockSize(); blockSize < (1 << 24); blockSize <<= 1) {
 			int headerSlotsRequired = 1;  // for the top level directory entry
@@ -290,7 +290,7 @@ public class ImgFS implements FileSystem {
 			int requiredSlots = param.getDirectoryStartEntry() + headerSlotsRequired;
 			int headerBlocks = (requiredSlots * ENTRY_SIZE + blockSize - 1) / blockSize;
 			int totalBlocks = headerBlocks + fileBlocks;
-			int size = totalBlocks * blockSize;
+			long size = (long) totalBlocks * blockSize;
 			log.infof("bs=%d, whole size=%d, hb=%d, fb=%d, blocks=%d", blockSize, size,
 					headerBlocks, fileBlocks, totalBlocks);
 



View it on GitLab: https://salsa.debian.org/debian-gis-team/mkgmap/-/commit/9beab52e6c37c5eb3626265fbab8528b0f9a5ee5

-- 
View it on GitLab: https://salsa.debian.org/debian-gis-team/mkgmap/-/commit/9beab52e6c37c5eb3626265fbab8528b0f9a5ee5
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-grass-devel/attachments/20240501/bb380570/attachment-0001.htm>


More information about the Pkg-grass-devel mailing list