Fix enum comparison warnings
This commit is contained in:
parent
0682bd782d
commit
a298e18d6d
|
@ -54,9 +54,6 @@ typedef int LAYER_NUM;
|
||||||
* One of these cannot be "incremented".
|
* One of these cannot be "incremented".
|
||||||
*/
|
*/
|
||||||
enum LAYER_ID
|
enum LAYER_ID
|
||||||
#if __cplusplus >= 201103L
|
|
||||||
: unsigned char
|
|
||||||
#endif
|
|
||||||
{
|
{
|
||||||
F_Cu, // 0
|
F_Cu, // 0
|
||||||
In1_Cu,
|
In1_Cu,
|
||||||
|
@ -116,13 +113,13 @@ enum LAYER_ID
|
||||||
B_Fab,
|
B_Fab,
|
||||||
F_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)
|
#define MAX_CU_LAYERS (B_Cu - F_Cu + 1)
|
||||||
|
|
||||||
/// A sequence of layers, a sequence provides a certain order.
|
/// A sequence of layers, a sequence provides a certain order.
|
||||||
|
|
Loading…
Reference in New Issue