Skip to content

Commit

Permalink
Fix platform compatibility check
Browse files Browse the repository at this point in the history
  • Loading branch information
jakovenko-dm authored and hongyang7 committed Jan 15, 2020
1 parent 7b406c6 commit 17de350
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/database.c
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ hs_error_t HS_CDECL hs_serialize_database(const hs_database_t *db, char **bytes,
static
hs_error_t db_check_platform(const u64a p) {
if (p != hs_current_platform
&& p != hs_current_platform_no_avx2
&& p != hs_current_platform_no_avx512) {
&& p != (hs_current_platform | hs_current_platform_no_avx2)
&& p != (hs_current_platform | hs_current_platform_no_avx512)) {
return HS_DB_PLATFORM_ERROR;
}
// passed all checks
Expand Down

0 comments on commit 17de350

Please sign in to comment.