Skip to content

Commit

Permalink
Fix conversion warning in flag set/check/clear macros
Browse files Browse the repository at this point in the history
  • Loading branch information
ZedThree committed Apr 25, 2024
1 parent 40b7cfc commit 54fb03e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/ncdap.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ affect the operation of the system.
*/

typedef unsigned int NCFLAGS;
# define SETFLAG(controls,flag) (((controls).flags) |= (flag))
# define CLRFLAG(controls,flag) (((controls).flags) &= ~(flag))
# define FLAGSET(controls,flag) (((controls.flags) & (flag)) != 0)
#define SETFLAG(controls,flag) (((controls).flags) |= (NCFLAGS)(flag))
#define CLRFLAG(controls,flag) (((controls).flags) &= ~(NCFLAGS)(flag))
#define FLAGSET(controls,flag) ((((controls).flags) & (NCFLAGS)(flag)) != 0)

/* Defined flags */
#define NCF_NC3 (0x0001) /* DAP->netcdf-3 */
Expand Down
1 change: 1 addition & 0 deletions libdap4/ncd4types.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ are defined here.

#undef COMPILEBYDEFAULT

#include "ncdap.h"
#include "ncrc.h"
#include "ncauth.h"

Expand Down

0 comments on commit 54fb03e

Please sign in to comment.