Explorar el Código

Update UCommon.pas

fixed compilation bug when not in UNITTESTS
PascalCoin hace 6 años
padre
commit
f99bfb94be
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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}