aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/math/bigint/big_io.cpp
diff options
context:
space:
mode:
authorDaniel Seither <[email protected]>2015-06-20 18:27:06 +0200
committerDaniel Seither <[email protected]>2015-06-20 19:05:07 +0200
commitf19604516c0138ffc240388073af2ce0735c48aa (patch)
tree007b800a51542e11dabcc72250d9c5ee2d56d9f2 /src/lib/math/bigint/big_io.cpp
parentde51fccc5ad04ca734ee91a829298ee06ee948f4 (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.cpp2
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())