Skip to content
Snippets Groups Projects
Commit d7f7af4b authored by Axel Naumann's avatar Axel Naumann
Browse files

Avoid sign changes due to kIsRaw / fMod sign extension.

Fixes '@' cancelling CINT input.


git-svn-id: http://root.cern.ch/svn/root/trunk@39702 27541ba8-7e3a-0410-8455-c3a389f83636
parent 732ce66d
No related branches found
No related tags found
No related merge requests found
......@@ -75,7 +75,7 @@ namespace textinput {
int GetRaw() const { return fRaw; }
EExtendedInput GetExtendedInput() const { return fExt; }
int GetModifier() const { return fMod & ~kIsRaw; }
unsigned char GetModifier() const { return fMod & ~kIsRaw; }
void SetRaw(char R) { fRaw = R; fMod |= kIsRaw; }
void SetExtended(EExtendedInput E) { fExt = E; fMod &= ~kIsRaw; }
......@@ -86,7 +86,7 @@ namespace textinput {
char fRaw; // raw input character, if kIsRaw & fMod
EExtendedInput fExt; // non-character input
};
char fMod; // Modifiers, also stores union descriminator (kIsRaw)
unsigned char fMod; // Modifiers, also stores union descriminator (kIsRaw)
};
}
#endif // TEXTINPUT_INPUTDATA_H
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment