/ Check-in [3d662511]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Remove incorrect NEVER() macro added by the previous check-in.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | int-float-compare
Files: files | file ages | folders
SHA3-256:3d6625111319c0356c57aaf7b7460fd882c3f00ca668dc43c0abe3403c7c2ba3
User & Date: drh 2018-05-18 14:19:35
Context
2018-05-18
14:24
Improvements to integer/float comparisons on architectures that lack a "long double" type. check-in: 5139ea62 user: drh tags: trunk
14:19
Remove incorrect NEVER() macro added by the previous check-in. Closed-Leaf check-in: 3d662511 user: drh tags: int-float-compare
13:39
Improvements to the sqlite3IntFloatCompare() routine for systems that lack the long double type. check-in: ea6a03a8 user: drh tags: int-float-compare
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/vdbeaux.c.

  3919   3919       if( r<-9223372036854775808.0 ) return +1;
  3920   3920       if( r>=9223372036854775808.0 ) return -1;
  3921   3921       y = (i64)r;
  3922   3922       if( i<y ) return -1;
  3923   3923       if( i>y ) return +1;
  3924   3924       s = (double)i;
  3925   3925       if( s<r ) return -1;
  3926         -    if( NEVER(s>r) ) return +1;
         3926  +    if( s>r ) return +1;
  3927   3927       return 0;
  3928   3928     }
  3929   3929   }
  3930   3930   
  3931   3931   /*
  3932   3932   ** Compare the values contained by the two memory cells, returning
  3933   3933   ** negative, zero or positive if pMem1 is less than, equal to, or greater