mirror of
https://github.com/matrix-construct/construct
synced 2024-11-29 02:02:38 +01:00
Don't suggest putting values in an enum that are not in the enum.
Compilers may assume that variables of enumerated type only contain values in the enumeration.
This commit is contained in:
parent
07d86ced08
commit
975c61928a
1 changed files with 3 additions and 2 deletions
|
@ -26,9 +26,10 @@
|
||||||
|
|
||||||
#include "stdinc.h"
|
#include "stdinc.h"
|
||||||
|
|
||||||
typedef enum {
|
enum {
|
||||||
PRIV_NEEDOPER = 1
|
PRIV_NEEDOPER = 1
|
||||||
} PrivilegeFlags;
|
};
|
||||||
|
typedef unsigned int PrivilegeFlags;
|
||||||
|
|
||||||
struct PrivilegeSet {
|
struct PrivilegeSet {
|
||||||
unsigned int status; /* If CONF_ILLEGAL, delete when no refs */
|
unsigned int status; /* If CONF_ILLEGAL, delete when no refs */
|
||||||
|
|
Loading…
Reference in a new issue