The endianness of binary taxonomy files is now correctly checked
This commit is contained in:
@ -17,6 +17,10 @@
|
||||
#include "obidms.h"
|
||||
|
||||
|
||||
#define SWAPINT32(x) ((((x) << 24) & 0xFF000000) | (((x) << 8) & 0xFF0000) | \
|
||||
(((x) >> 8) & 0xFF00) | (((x) >> 24) & 0xFF))
|
||||
|
||||
|
||||
typedef struct {
|
||||
int32_t taxid;
|
||||
int32_t rank;
|
||||
|
Reference in New Issue
Block a user