Fix ftbfs on Fedora 34

error: reference to ‘byte’ is ambiguous

Signed-off-by: François Andriot <francois.andriot@free.fr>
(cherry picked from commit a499c5423b)
r14.0.x
François Andriot 4 years ago committed by Michele Calgaro
parent e33521544b
commit 56a28b57ea
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -61,7 +61,7 @@ class tBuf {
// int hicharnum; // int hicharnum;
// bool space; // bool space;
byte * buf; ::byte * buf;
unsigned len; unsigned len;
bool isCompressed; bool isCompressed;
public: public:
@ -81,9 +81,9 @@ class tBuf {
delete[]buf; delete[]buf;
buf = 0L; buf = 0L;
} }
void setText(const byte * text, unsigned int txtlen = void setText(const ::byte * text, unsigned int txtlen =
0, bool txtcomp = false); 0, bool txtcomp = false);
byte *text() const { ::byte *text() const {
return buf; return buf;
} }
unsigned Len() const { unsigned Len() const {
@ -102,7 +102,7 @@ class tBuf {
unsigned Compress(); unsigned Compress();
private: private:
unsigned Issue(byte src, int &bSpace); unsigned Issue(::byte src, int &bSpace);
void Dump() const { void Dump() const {
printf("\nbuffer len=%d", len); printf("\nbuffer len=%d", len);
}}; }};

Loading…
Cancel
Save