I have the following line of code,
const CHAR* GetText() { return Text; } // Text is char[16]"Character Array"
The Fortify security tool is complaining about the above line as follows: Type Mismatch: Signed to Unsigned GetText()is declared to return an unsigned value, but on line xxx it returns a signed value.
I did not understand where i am converting it from signed to unsigned. I do understand the signed to unsigned conversion stuff if it is related to integers.
If i inferred correctly from the line of code, Is char which being returned a signed char? Is LPCSTR(const char*)the return type is unsigned char?
How do we assume (Text-which is a string) is signed and unsigned?
Any help would be appreciated.