aboutsummaryrefslogtreecommitdiffstats
path: root/common/rdr/ZlibInStream.cxx
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2022-09-10 13:19:41 +0200
committerPierre Ossman <ossman@cendio.se>2023-02-01 21:17:12 +0100
commit6881c895ab317bd302addac5f228b7367136017f (patch)
tree18d1119f59209147d97e873c3dbc9be36e429aaf /common/rdr/ZlibInStream.cxx
parentbaca73d03217a1c219d9c4f024ffcd39f85fd322 (diff)
downloadtigervnc-6881c895ab317bd302addac5f228b7367136017f.tar.gz
tigervnc-6881c895ab317bd302addac5f228b7367136017f.zip
Use stdint types
Avoid having our own custom stuff and instead use the modern, standard types, for familiarity.
Diffstat (limited to 'common/rdr/ZlibInStream.cxx')
-rw-r--r--common/rdr/ZlibInStream.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/rdr/ZlibInStream.cxx b/common/rdr/ZlibInStream.cxx
index 03df10cc..6441f0a1 100644
--- a/common/rdr/ZlibInStream.cxx
+++ b/common/rdr/ZlibInStream.cxx
@@ -94,7 +94,7 @@ bool ZlibInStream::fillBuffer()
if (!underlying)
throw Exception("ZlibInStream overrun: no underlying stream");
- zs->next_out = (U8*)end;
+ zs->next_out = (uint8_t*)end;
zs->avail_out = availSpace();
if (!underlying->hasData(1))
@@ -102,7 +102,7 @@ bool ZlibInStream::fillBuffer()
size_t length = underlying->avail();
if (length > bytesIn)
length = bytesIn;
- zs->next_in = (U8*)underlying->getptr(length);
+ zs->next_in = (uint8_t*)underlying->getptr(length);
zs->avail_in = length;
int rc = inflate(zs, Z_SYNC_FLUSH);