|
@@ -244,7 +244,7 @@ class Macros {
|
|
case TInt:
|
|
case TInt:
|
|
exprs.push(macro {
|
|
exprs.push(macro {
|
|
var v : Int = $p;
|
|
var v : Int = $p;
|
|
- if( v >>> $v{ c.bits } != 0 ) throw $v{ c.v.name } +" is out of range " + v + ">" + $v{ (1 << c.bits) - 1 };
|
|
|
|
|
|
+ if( v >>> $v{ c.bits } != 0 ) throw $v{ c.v.name } +" is out of range " + v + ">" + $v{ (1 << c.bits) - 1 } + ", consider using @const(MAX_VALUE)";
|
|
constBits |= v << $v{ c.pos };
|
|
constBits |= v << $v{ c.pos };
|
|
});
|
|
});
|
|
case TBool:
|
|
case TBool:
|