From e2f1f734277146d817ab284dea21e4013cb5b937 Mon Sep 17 00:00:00 2001 From: lloyd Date: Mon, 23 Jul 2007 15:44:04 +0000 Subject: Avoid C-style casts (as detected by GCC's -Wold-style-cast) and instead use static_cast or reinterpret_cast, as needed. --- src/data_snk.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/data_snk.cpp') diff --git a/src/data_snk.cpp b/src/data_snk.cpp index 7f2080723..a76fbfa09 100644 --- a/src/data_snk.cpp +++ b/src/data_snk.cpp @@ -13,7 +13,7 @@ namespace Botan { *************************************************/ void DataSink_Stream::write(const byte out[], u32bit length) { - sink->write((const char*)out, length); + sink->write(reinterpret_cast(out), length); if(!sink->good()) throw Stream_IO_Error("DataSink_Stream: Failure writing to " + fsname); } -- cgit v1.2.3