From 122b8a2e74dbd465f972641dccf04117720a989c Mon Sep 17 00:00:00 2001 From: ToruNiina Date: Fri, 7 Feb 2025 00:49:04 +0900 Subject: [PATCH] refactor: use literal instead of seq(char,char) --- include/toml11/parser.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/toml11/parser.hpp b/include/toml11/parser.hpp index 350c4f4..fc88a30 100644 --- a/include/toml11/parser.hpp +++ b/include/toml11/parser.hpp @@ -473,7 +473,7 @@ parse_floating(location& loc, const context& ctx) bool is_hex = false; std::string str; region reg; - if(spec.ext_hex_float && sequence(character('0'), character('x')).scan(loc).is_ok()) + if(spec.ext_hex_float && literal("0x").scan(loc).is_ok()) { loc = first; is_hex = true;