Skip to content

Commit

Permalink
Merge pull request #577 from ANGSD/dev_fix_assert
Browse files Browse the repository at this point in the history
[fix] Add missing parenthesis to assert macro
  • Loading branch information
isinaltinkaya committed May 22, 2023
2 parents 25afb62 + 8ecf807 commit e6967e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aio.h
Expand Up @@ -17,7 +17,7 @@
* Macro:[ASSERT]
* shortcut to evaluate an expression, works the same way as the C-macro assert
*/
#define ASSERT(expr) if (!(expr)) {fprintf(stderr,"\n\n*******\n[ERROR](%s:%d) %s\n*******\n",__FILE__,__LINE__,#expr);exit(1);}
#define ASSERT(expr) if (!((expr))) {fprintf(stderr,"\n\n*******\n[ERROR](%s:%d) %s\n*******\n",__FILE__,__LINE__,#expr);exit(1);}


//angsd io
Expand Down

0 comments on commit e6967e6

Please sign in to comment.