diff --git a/src/zxing/zxing/oned/rss/expanded/decoders/GeneralAppIdDecoder.cpp b/src/zxing/zxing/oned/rss/expanded/decoders/GeneralAppIdDecoder.cpp index 1fc326b..a1b0052 100644 --- a/src/zxing/zxing/oned/rss/expanded/decoders/GeneralAppIdDecoder.cpp +++ b/src/zxing/zxing/oned/rss/expanded/decoders/GeneralAppIdDecoder.cpp @@ -394,7 +394,10 @@ DecodedChar GeneralAppIdDecoder::decodeAlphanumeric(int pos) c = '/'; break; default: - throw IllegalStateException("Decoding invalid alphanumeric value: " + sixBitValue); + { + auto msg = "Decoding invalid alphanumeric value: " + std::to_string(sixBitValue); + throw IllegalStateException(msg.c_str()); + } } return DecodedChar(pos + 6, c); }