mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-12-15 08:30:11 +08:00
Fix conversion warning in flag set/check/clear macros
This commit is contained in:
parent
40b7cfc7be
commit
54fb03e69b
@ -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 */
|
||||
|
@ -13,6 +13,7 @@ are defined here.
|
||||
|
||||
#undef COMPILEBYDEFAULT
|
||||
|
||||
#include "ncdap.h"
|
||||
#include "ncrc.h"
|
||||
#include "ncauth.h"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user