Skip to content

Commit

Permalink
Fix warnings, add typos exception for Fuzzing.c
Browse files Browse the repository at this point in the history
  • Loading branch information
SanderMertens committed Dec 15, 2024
1 parent b9f0d4b commit 5aa8972
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion _typos.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
files.extend-exclude = ["distr/*"]
files.extend-exclude = ["distr/*", "test/script/Fuzzing.c"]

# typos can't handle "2nd" as a word (yet?)
default.extend-ignore-identifiers-re = ["_2nd"]
Expand Down
2 changes: 1 addition & 1 deletion distr/flecs.c
Original file line number Diff line number Diff line change
Expand Up @@ -5255,7 +5255,7 @@ bool flecs_expr_is_type_number(
#define ECS_VALUE_GET(value, T) (*(T*)(value)->ptr)

#define ECS_BOP(left, right, result, op, R, T)\
ECS_VALUE_GET(result, R) = ECS_VALUE_GET(left, T) op ECS_VALUE_GET(right, T)
ECS_VALUE_GET(result, R) = (R)(ECS_VALUE_GET(left, T) op ECS_VALUE_GET(right, T))

#define ECS_BOP_COND(left, right, result, op, R, T)\
ECS_VALUE_GET(result, ecs_bool_t) = ECS_VALUE_GET(left, T) op ECS_VALUE_GET(right, T)
Expand Down
2 changes: 1 addition & 1 deletion src/addons/script/expr/expr.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ bool flecs_expr_is_type_number(
#define ECS_VALUE_GET(value, T) (*(T*)(value)->ptr)

#define ECS_BOP(left, right, result, op, R, T)\
ECS_VALUE_GET(result, R) = ECS_VALUE_GET(left, T) op ECS_VALUE_GET(right, T)
ECS_VALUE_GET(result, R) = (R)(ECS_VALUE_GET(left, T) op ECS_VALUE_GET(right, T))

#define ECS_BOP_COND(left, right, result, op, R, T)\
ECS_VALUE_GET(result, ecs_bool_t) = ECS_VALUE_GET(left, T) op ECS_VALUE_GET(right, T)
Expand Down

0 comments on commit 5aa8972

Please sign in to comment.