Skip to content

Commit 0bf4be5

Browse files
committed
Reader.h - allow writing long long and unsigned long long
1 parent 3ed54d1 commit 0bf4be5

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Source/System/Reader.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,16 @@ namespace RTE {
185185
*m_Stream >> var;
186186
return *this;
187187
}
188+
Reader& operator>>(long long& var) {
189+
DiscardEmptySpace();
190+
*m_Stream >> var;
191+
return *this;
192+
}
193+
Reader& operator>>(unsigned long long& var) {
194+
DiscardEmptySpace();
195+
*m_Stream >> var;
196+
return *this;
197+
}
188198
// Yeah, this is dumb - read as double and cast.
189199
// This is because, for whatever fucking reason, iostream can save out floats at a precision that it's then unable to read...
190200
Reader& operator>>(float& var) {

0 commit comments

Comments
 (0)