diff options
author | Daniel Seither <[email protected]> | 2015-06-20 18:27:06 +0200 |
---|---|---|
committer | Daniel Seither <[email protected]> | 2015-06-20 19:05:07 +0200 |
commit | f19604516c0138ffc240388073af2ce0735c48aa (patch) | |
tree | 007b800a51542e11dabcc72250d9c5ee2d56d9f2 /src/lib/math/bigint/big_io.cpp | |
parent | de51fccc5ad04ca734ee91a829298ee06ee948f4 (diff) |
lib/math: Convert &vec[0] to vec.data()
Diffstat (limited to 'src/lib/math/bigint/big_io.cpp')
-rw-r--r-- | src/lib/math/bigint/big_io.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/math/bigint/big_io.cpp b/src/lib/math/bigint/big_io.cpp index 9cd0a2cef..3e66f788d 100644 --- a/src/lib/math/bigint/big_io.cpp +++ b/src/lib/math/bigint/big_io.cpp @@ -31,7 +31,7 @@ std::ostream& operator<<(std::ostream& stream, const BigInt& n) size_t skip = 0; while(skip < buffer.size() && buffer[skip] == '0') ++skip; - stream.write(reinterpret_cast<const char*>(&buffer[0]) + skip, + stream.write(reinterpret_cast<const char*>(buffer.data()) + skip, buffer.size() - skip); } if(!stream.good()) |