From fbba09119431390b8dbf53732a1f1f61af8ae271 Mon Sep 17 00:00:00 2001 From: Ansariel Date: Fri, 3 Mar 2023 22:54:01 +0100 Subject: [PATCH] Change this according to Nat Linden --- indra/llcommon/llsdserialize.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indra/llcommon/llsdserialize.cpp b/indra/llcommon/llsdserialize.cpp index 68202833eb..533d473640 100644 --- a/indra/llcommon/llsdserialize.cpp +++ b/indra/llcommon/llsdserialize.cpp @@ -146,7 +146,7 @@ bool LLSDSerialize::deserialize(LLSD& sd, std::istream& str, llssize max_bytes) // byte. We could store one if needed, since even the incremented // inbuf won't exceed sizeof(hdr_buf)-1, but there's no need. } - std::string header{ hdr_buf, narrow(inbuf) }; + std::string header{ hdr_buf, std::string::size_type(inbuf) }; if (str.fail()) { str.clear();