Browse Source

Forgot one define READ32

master
Dirk Engling 12 years ago
parent
commit
d46a8a5d06
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      ot_vector.c

+ 2
- 2
ot_vector.c View File

@@ -39,7 +39,7 @@ void *binary_search( const void * const key, const void * base, const size_t mem
*exactmatch = 1;
while( mc ) {
int32_t cmp = key_cache - (int32_t)uint32_read(lookat);
int32_t cmp = key_cache - READ32(lookat,0);
if (cmp == 0) {
for( offs = 4; cmp == 0 && offs < compare_size; offs += 4 )
cmp = READ32(key,offs) - READ32(lookat,offs);
@@ -302,4 +302,4 @@ void vector_fixup_peers( ot_vector * vector ) {
vector->data = realloc( vector->data, vector->space * sizeof( ot_peer ) );
}

const char *g_version_vector_c = "$Source: /home/cvsroot/opentracker/ot_vector.c,v $: $Revision: 1.9 $\n";
const char *g_version_vector_c = "$Source: /home/cvsroot/opentracker/ot_vector.c,v $: $Revision: 1.10 $\n";

Loading…
Cancel
Save