Skip to content

Commit

Permalink
COMMON: Fix return types of SeekableSubReadStreamEndian::readSint*()
Browse files Browse the repository at this point in the history
They need to return signed types.
  • Loading branch information
DrMcCoy committed Aug 19, 2018
1 parent 8802e8c commit 624c9f0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/common/readstream.h
Original file line number Diff line number Diff line change
Expand Up @@ -401,15 +401,15 @@ class SeekableSubReadStreamEndian : public SeekableSubReadStream {
return _bigEndian ? readUint64BE() : readUint64LE();
}

uint16 readSint16() {
int16 readSint16() {
return _bigEndian ? readSint16BE() : readSint16LE();
}

uint32 readSint32() {
int32 readSint32() {
return _bigEndian ? readSint32BE() : readSint32LE();
}

uint64 readSint64() {
int64 readSint64() {
return _bigEndian ? readSint64BE() : readSint64LE();
}

Expand Down

0 comments on commit 624c9f0

Please sign in to comment.