HEX$の桁数が負の場合エラーを出すようにした
This commit is contained in:
1 parent
e1dd8fce41
commit
e878837b95
1 file changed
+1
-1
@@ -880,7 +880,7 @@ class BuiltinFunction
|
|||||||
static wstring HEX(int val, DefaultValue!(int, false) digits)
|
static wstring HEX(int val, DefaultValue!(int, false) digits)
|
||||||
{
|
{
|
||||||
import std.format;
|
import std.format;
|
||||||
if(digits > 8)
|
if(digits > 8 || digits < 0)
|
||||||
{
|
{
|
||||||
throw new OutOfRange();
|
throw new OutOfRange();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user