Changeset 481 for trunk/src/zAVLTree.c


Ignore:
Timestamp:
Jul 18, 2015, 5:06:52 PM (9 years ago)
Author:
katerina
Message:

Enhancements and fixes for tickets #374, #375, #376, #377, #378, and #379.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/zAVLTree.c

    r474 r481  
    4040}
    4141
    42 static char * dummy_zfree_string;
     42char * dummy_zfree_string;
    4343#ifdef __clang__
    44 static char * dummy_zfree_str;
     44char * dummy_zfree_str;
    4545#endif
    4646
     
    145145  if (tree->keytype == zAVL_KEY_STRING)
    146146    {
    147       return (strcmp((char*)a, (char *)b));
     147      return (strcmp((const char*)a, (const char *)b));
    148148    }
    149149  else /* zAVL_KEY_INT */
    150150    {
    151       int x = *((int *)a);
    152       int y = *((int *)b);
     151      const int x = *((const int *)a);
     152      const int y = *((const int *)b);
    153153
    154154      if      (x > y) return  1;
Note: See TracChangeset for help on using the changeset viewer.