From 947dfe3e41ec36393b709abc1f38b8ab9340114b Mon Sep 17 00:00:00 2001 From: Benji Dial Date: Thu, 18 Feb 2021 14:35:52 -0500 Subject: making pbf-gen work with hex line lengths other than 25 --- tools/pbf-gen.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/pbf-gen.rb b/tools/pbf-gen.rb index f4c59c8..c37b51a 100644 --- a/tools/pbf-gen.rb +++ b/tools/pbf-gen.rb @@ -5,7 +5,7 @@ bitmaps = {} File.readlines(ARGV[0]).map do |l| - bitmaps[l[0..3].to_i 16] = (l[5..-2].to_i(16) + 2**80).to_s(2)[1..-1] + bitmaps[l[0..3].to_i 16] = (l[5..-2].to_i(16) + 2**(ARGV[2].to_i() * ARGV[4].to_i())).to_s(2)[1..-1] end data_area_entries = {} -- cgit v1.2.3