Fix enum comparison warnings

This commit is contained in:
Chris Pavlina 2016-01-08 17:28:21 -05:00
parent 0682bd782d
commit a298e18d6d
1 changed files with 4 additions and 7 deletions

View File

@ -54,9 +54,6 @@ typedef int LAYER_NUM;
* One of these cannot be "incremented".
*/
enum LAYER_ID
#if __cplusplus >= 201103L
: unsigned char
#endif
{
F_Cu, // 0
In1_Cu,
@ -116,13 +113,13 @@ enum LAYER_ID
B_Fab,
F_Fab,
LAYER_ID_COUNT
LAYER_ID_COUNT,
UNDEFINED_LAYER = -1,
UNSELECTED_LAYER = -2,
};
#define UNDEFINED_LAYER LAYER_ID(-1)
#define UNSELECTED_LAYER LAYER_ID(-2)
#define MAX_CU_LAYERS (B_Cu - F_Cu + 1)
/// A sequence of layers, a sequence provides a certain order.