diff --git a/.travis.yml b/.travis.yml index 55ca009..de94cb5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,7 +7,7 @@ os: language: d d: - - dmd-2.071.0 + - dmd-2.071.2 - dmd-2.070.2 - dmd-2.069.2 - dmd-2.068.2 @@ -17,7 +17,7 @@ d: matrix: allow_failures: - - ldc-1.0.0 + - d: ldc-1.0.0 env: matrix: diff --git a/cbor.d b/cbor.d index 7abb176..a486650 100644 --- a/cbor.d +++ b/cbor.d @@ -1229,15 +1229,15 @@ private float halfToFloat(ushort half) @nogc ( half & 0x8000 ) << 16 // sign << ( 31 - 15 ) | ( exp | mant ) << 13 ) // value << ( 23 - 10 ) }; - return f.f; + return f.f; } /// Outputs textual representation of cbor stream into sink or stdout if not provided. -void printCborStream(string singleIndent=" ", R)(auto ref R input) +void printCborStream(string singleIndent=" ", R)(auto ref R input, ulong numItems = ulong.max) { import std.stdio : stdout; auto writer = stdout.lockingTextWriter; - printCborStream!singleIndent(input, writer); + printCborStream!singleIndent(input, writer, numItems); } /// ditto