Changeset 481 for trunk/src/zAVLTree.c
- Timestamp:
- Jul 18, 2015, 5:06:52 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/zAVLTree.c
r474 r481 40 40 } 41 41 42 staticchar * dummy_zfree_string;42 char * dummy_zfree_string; 43 43 #ifdef __clang__ 44 staticchar * dummy_zfree_str;44 char * dummy_zfree_str; 45 45 #endif 46 46 … … 145 145 if (tree->keytype == zAVL_KEY_STRING) 146 146 { 147 return (strcmp((c har*)a, (char *)b));147 return (strcmp((const char*)a, (const char *)b)); 148 148 } 149 149 else /* zAVL_KEY_INT */ 150 150 { 151 int x = *((int *)a);152 int y = *((int *)b);151 const int x = *((const int *)a); 152 const int y = *((const int *)b); 153 153 154 154 if (x > y) return 1;
Note:
See TracChangeset
for help on using the changeset viewer.