From 55aef68f8f1cceeadb4be227552335a71b18d1bd Mon Sep 17 00:00:00 2001 From: jyelon Date: Thu, 25 May 2023 20:27:34 -0400 Subject: [PATCH] Change character literals to '\xFF' --- luprex/cpp/drv/drvutil.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/luprex/cpp/drv/drvutil.cpp b/luprex/cpp/drv/drvutil.cpp index e25d039b..c4bbf273 100644 --- a/luprex/cpp/drv/drvutil.cpp +++ b/luprex/cpp/drv/drvutil.cpp @@ -242,7 +242,7 @@ static void sbwrite_uint64(std::ostream *s, uint64_t v) { // This encoding can be read by StreamBuffer::read_string. // static void sbwrite_string(std::ostream *s, std::string_view sv) { - s->put(0xFF); + s->put('\xFF'); sbwrite_uint64(s, sv.size()); s->write(sv.data(), sv.size()); } @@ -250,7 +250,7 @@ static void sbwrite_string(std::ostream *s, std::string_view sv) { // This encoding can be read by StreamBuffer::read_string. // static bool sbwrite_file(std::ostream *s, const std::filesystem::path &fn) { - s->put(0xFF); + s->put('\xFF'); uint64_t pos1 = s->tellp(); sbwrite_uint64(s, 0); uint64_t pos2 = s->tellp();