mirror of https://github.com/yandex/odyssey.git
odissey: fix id comparator
This commit is contained in:
parent
a94acec1c8
commit
7dc0f118a4
|
@ -32,7 +32,7 @@ void od_idmgr_generate(od_idmgr_t*, od_id_t*);
|
||||||
static inline int
|
static inline int
|
||||||
od_idmgr_cmp(od_id_t *a, od_id_t *b)
|
od_idmgr_cmp(od_id_t *a, od_id_t *b)
|
||||||
{
|
{
|
||||||
return *(uint64_t*)a->id == *(uint64_t*)b->id;
|
return memcmp(a->id, b->id, sizeof(a->id)) == 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* OD_ID_H */
|
#endif /* OD_ID_H */
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
#include <machinarium.h>
|
#include <machinarium.h>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue