Changeset 18039 for gsdl/trunk
- Timestamp:
- 2008-12-03T16:10:34+13:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gsdl/trunk/common-src/packages/gdbm/gdbm-1.8.3/bucket.c
r18038 r18039 122 122 { 123 123 endian_swap_array((int*) dbf->bucket, dbf->header->bucket_size); 124 125 // There is a 4-byte string in each hash table entry that we need to leave alone (because character 126 // strings are not affected by endianness), so convert these back to how they were originally 127 int b; 128 for (b = 0; b < dbf->bucket->count; b++) 129 { 130 int* key_start = (int*) dbf->bucket->h_table[b].key_start; 131 *key_start = endian_swap (*key_start); 132 } 124 133 } 125 134 }
Note:
See TracChangeset
for help on using the changeset viewer.