~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to server/item_cmpfunc.cc

  • Committer: Brian Aker
  • Date: 2008-07-15 06:45:16 UTC
  • Revision ID: brian@tangent.org-20080715064516-fnbq7kowh7w57bxj
Merge Monty's code.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3033
3033
      One of the args is unsigned and is too big to fit into the 
3034
3034
      positive signed range. Report no match.
3035
3035
    */  
3036
 
    if ((a->unsigned_flag && ((uint64_t) a->val) > (uint64_t) LONGLONG_MAX) ||
3037
 
        (b->unsigned_flag && ((uint64_t) b->val) > (uint64_t) LONGLONG_MAX))
 
3036
    if ((a->unsigned_flag && ((uint64_t) a->val) > (uint64_t) INT64_MAX) ||
 
3037
        (b->unsigned_flag && ((uint64_t) b->val) > (uint64_t) INT64_MAX))
3038
3038
      return a->unsigned_flag ? 1 : -1;
3039
3039
    /*
3040
3040
      Although the signedness differs both args can fit into the signed