summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNicolas 'Pixel' Noble <pixel@nobis-crew.org>2013-01-21 22:03:15 -0800
committerNicolas 'Pixel' Noble <pixel@nobis-crew.org>2013-01-21 22:03:15 -0800
commit8943c91ea48c4a87dd0e5ae15fefe959f72ae85c (patch)
tree9a3a1fb4b7d79b13cda092e99109c93fac38276a /src
parentb89df4ea0cf33408109658f674ff0453b7569e04 (diff)
Small, puny optimization.
Diffstat (limited to 'src')
-rw-r--r--src/BStream.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/BStream.cc b/src/BStream.cc
index 16fd1d1..2fe75c7 100644
--- a/src/BStream.cc
+++ b/src/BStream.cc
@@ -85,6 +85,9 @@ int Balau::BStream::peekNextByte() {
}
Balau::String Balau::BStream::readString(bool putNL) {
+ if (m_h.isA<BStream>())
+ return m_h.asA<BStream>()->readString(putNL);
+
peekNextByte();
uint8_t * cr, * lf, * nl;
String ret;