Skip to content

Commit

Permalink
Cast a macro argument to int to fix a Clang error.
Browse files Browse the repository at this point in the history
  • Loading branch information
Cons-Cat committed Nov 13, 2024
1 parent 21659f8 commit 6a4b85b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/KHR/khr_df.h
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ typedef enum _khr_df_mask_e {
((BDB)[KHR_DF_WORD_ ## X] = \
((BDB)[KHR_DF_WORD_ ## X] & \
~((KHR_DF_MASK_ ## X) << (KHR_DF_SHIFT_ ## X))) | \
(((val) & (KHR_DF_MASK_ ## X)) << (KHR_DF_SHIFT_ ## X)))
(((int)(val) & (KHR_DF_MASK_ ## X)) << (KHR_DF_SHIFT_ ## X)))

/* Offsets relative to the start of a sample */
typedef enum _khr_df_sampleword_e {
Expand Down

0 comments on commit 6a4b85b

Please sign in to comment.