logo separator

[mkgmap-dev] [PATCH 13/14] Write the char directly into the buffer, we know its long enough already.

From Jeffrey C. Ollie jeff at ocjtech.us on Thu Sep 9 21:12:13 BST 2010

From: Scott Crosby <scrosby at cs.rice.edu>

---
 src/uk/me/parabola/splitter/OSMWriter.java |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/uk/me/parabola/splitter/OSMWriter.java b/src/uk/me/parabola/splitter/OSMWriter.java
index c42ce52..350661c 100644
--- a/src/uk/me/parabola/splitter/OSMWriter.java
+++ b/src/uk/me/parabola/splitter/OSMWriter.java
@@ -227,7 +227,7 @@ public class OSMWriter {
 			writeString(numberFormat.format(value));
 		else {
 		     if (value < 0) {
-		    	 writeChar('-');
+		    	 charBuf[index++] = '-'; // Write directly.
 		    	 value = -value;
 		     }
 
-- 
1.7.2.3




More information about the mkgmap-dev mailing list