From fa05a983085cf0565b667f5514f5d3b7de58dfc9 Mon Sep 17 00:00:00 2001 From: Uwe Seimet Date: Thu, 7 Sep 2023 10:14:14 +0200 Subject: [PATCH] Replace cast --- cpp/devices/scsi_printer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpp/devices/scsi_printer.cpp b/cpp/devices/scsi_printer.cpp index 7bb35f6464..f0a6daedf4 100644 --- a/cpp/devices/scsi_printer.cpp +++ b/cpp/devices/scsi_printer.cpp @@ -160,7 +160,7 @@ bool SCSIPrinter::WriteByteSequence(const span buf) GetLogger().Trace("Appending " + to_string(buf.size()) + " byte(s) to printer output file ''" + filename + "'"); - out.write((const char*)buf.data(), buf.size()); + out.write(reinterpret_cast(buf.data()), buf.size()); return !out.fail(); }