Skip to content

Commit

Permalink
Fix left shift count >= width of type
Browse files Browse the repository at this point in the history
```
warning: left shift count >= width of type [enabled by default]
```
  • Loading branch information
fjeremic committed Jun 7, 2021
1 parent ba0eb3a commit 82622ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/infra/IGNode.hpp
Expand Up @@ -38,7 +38,7 @@ typedef int32_t IGNodeColour;
// Maximum number of neighbours of any node in the interference graph.
// The formula assumes the degree can not be negative values.
//
#define MAX_DEGREE ((IGNodeDegree)((1L << (sizeof(IGNodeDegree) << 3)) - 1))
#define MAX_DEGREE UINT_MAX

#define UNCOLOURED -1
#define CANNOTCOLOR -1
Expand Down

0 comments on commit 82622ed

Please sign in to comment.