• Tom Lane's avatar
    Fix breakage in GEODEBUG debug code. · 778d498c
    Tom Lane authored
    LINE doesn't have an "m" field (anymore anyway).  Also fix unportable
    assumption that %x can print the result of pointer subtraction.
    
    In passing, improve single_decode() in minor ways:
    * Remove unnecessary leading-whitespace skip (strtod does that already).
    * Make GEODEBUG message more intelligible.
    * Remove entirely-useless test to see if strtod returned a silly pointer.
    * Don't bother computing trailing-whitespace skip unless caller wants
      an ending pointer.
    
    This has been broken since 261c7d4b.
    Although it's only debug code, might as well fix the 9.4 branch too.
    778d498c
geo_ops.c 121 KB