Browse Source

Update UCommon.pas

fixed compilation bug when not in UNITTESTS
PascalCoin 6 years ago
parent
commit
f99bfb94be
1 changed files with 1 additions and 1 deletions
  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}