Skip to content

Commit

Permalink
remove type casting warning on the mac
Browse files Browse the repository at this point in the history
  • Loading branch information
fangq committed Aug 17, 2020
1 parent 670f783 commit 265ef1f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/mcx_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
: tmp)

#define UBJ_WRITE_KEY(ctx, key, type, val) {ubjw_write_key( (ctx), (key)); ubjw_write_##type((ctx), (val));}
#define UBJ_WRITE_ARRAY(ctx, type, nlen, val) {ubjw_write_buffer( (ctx), (uint8_t*)(val), JDB_##type, (nlen));}
#define UBJ_WRITE_ARRAY(ctx, type, nlen, val) {ubjw_write_buffer( (ctx), (uint8_t*)(val), (UBJ_TYPE)(JDB_##type), (nlen));}

#define ubjw_write_single ubjw_write_float32
#define ubjw_write_double ubjw_write_float64
Expand Down
3 changes: 2 additions & 1 deletion src/ubj/ubj_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -159,4 +159,5 @@ static inline ubjr_dynamic_t priv_ubjr_pointer_to_dynamic(UBJ_TYPE typ, const vo
return outdyn;
}

#endif
#endif

0 comments on commit 265ef1f

Please sign in to comment.