Fix ftbfs on Fedora 34

error: reference to ‘byte’ is ambiguous

Signed-off-by: François Andriot <francois.andriot@free.fr>
pull/5/head
François Andriot 3 years ago
parent e053314f0e
commit a499c5423b

@ -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