jpountz commented on a change in pull request #1252: LUCENE-9218: XYGeometries should expose values as floats URL: https://github.com/apache/lucene-solr/pull/1252#discussion_r379314539
########## File path: lucene/core/src/java/org/apache/lucene/geo/XYEncodingUtils.java ########## @@ -68,7 +68,15 @@ public static double decode(int encoded) { * @param offset offset into {@code src} to decode from. * @return decoded value. */ - public static double decode(byte[] src, int offset) { + public static float decode(byte[] src, int offset) { return decode(NumericUtils.sortableBytesToInt(src, offset)); } + + static double[] floatToDouble(float[] f) { Review comment: nit: maybe add `Array` to the method name ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org