From a6fb61db10a93801065d34d19fb6d7166511e58d Mon Sep 17 00:00:00 2001 From: Syndamia Date: Thu, 31 Mar 2022 09:37:42 +0300 Subject: Made naming and slight formatting adjustments --- Year 1/Object-oriented Programming/Solutions Sem. 03/ex4/Bytex.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Year 1/Object-oriented Programming/Solutions Sem. 03/ex4/Bytex.h') diff --git a/Year 1/Object-oriented Programming/Solutions Sem. 03/ex4/Bytex.h b/Year 1/Object-oriented Programming/Solutions Sem. 03/ex4/Bytex.h index fc39e7a..67f3c57 100644 --- a/Year 1/Object-oriented Programming/Solutions Sem. 03/ex4/Bytex.h +++ b/Year 1/Object-oriented Programming/Solutions Sem. 03/ex4/Bytex.h @@ -1,8 +1,8 @@ class Bytex { - char hexVal[2]; char byteVal; + char hexVal[2]; // Normal bytes are up to 255, which is FF in Hex - char digitToHexChar(unsigned int digit); + char digitToHexChar(int digit); int hexCharToNum(char hexChar); void byteValToHex(); void hexValToByte(); -- cgit v1.3.1-26-gb76a