浏览代码

Update UCommon.pas

fixed compilation bug when not in UNITTESTS
PascalCoin 6 年之前
父节点
当前提交
f99bfb94be
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/libraries/sphere10/UCommon.pas

+ 1 - 1
src/libraries/sphere10/UCommon.pas

@@ -44,8 +44,8 @@ const
 
 
 function String2Hex(const Buffer: String): String;
-function Hex2Bytes(const AHexString: String): TBytes; overload;
 {$IFDEF UNITTESTS}
+function Hex2Bytes(const AHexString: String): TBytes; overload;
 function TryHex2Bytes(const AHexString: String; out ABytes : TBytes): boolean; overload;
 function Bytes2Hex(const ABytes: TBytes; AUsePrefix : boolean = false) : String;
 {$ENDIF}