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

Loading…
Cancel
Save