You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by GitBox <gi...@apache.org> on 2020/02/14 08:59:46 UTC

[GitHub] [lucene-solr] jpountz commented on a change in pull request #1252: LUCENE-9218: XYGeometries should expose values as floats

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:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org