[postgis-tickets] [PostGIS] #3426: Patch to fix test_wkb_out_point failure on hppa & mips.

PostGIS trac at osgeo.org
Wed Jan 13 07:33:04 PST 2016


#3426: Patch to fix test_wkb_out_point failure on hppa & mips.
-----------------------+---------------------------
  Reporter:  sebastic  |      Owner:  robe
      Type:  defect    |     Status:  reopened
  Priority:  medium    |  Milestone:  PostGIS 2.2.2
 Component:  postgis   |    Version:  2.2.x
Resolution:            |   Keywords:
-----------------------+---------------------------

Comment (by strk):

 On my system both the values introduced in this patch return true from
 isnan():
 {{{
 #include <stdio.h>
 #include <stdint.h>
 #include <math.h>

 int main()
 {
   union {
     int64_t i;
     double d;
   } val;

   val.i = 0x7FF8000000000000;
   printf("%g is nan ? %d\n", val.d, isnan(val.d));

   val.i = 0x7FF7FFFFFFFFFFFF;
   printf("%g is nan ? %d\n", val.d, isnan(val.d));
 }
 }}}

 Could you run the same on your machine ?
 Chances are both are NaNs there too, in which case we're good to hard-code
 one version (could be quiet vs. signaling)

--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/3426#comment:10>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-tickets mailing list