Fix issue with parser

This commit is contained in:
Georg Hagen
2024-10-17 19:41:51 +02:00
parent 22d2d274eb
commit 97a73d0cc4

View File

@@ -45,10 +45,10 @@ namespace YAML
{ {
if (node.IsScalar()) if (node.IsScalar())
{ {
size_t ret = c4::unformat(c4::to_csubstr(node.Scalar()), "({},{},{}),({},{},{})", bbox.min.x, bbox.min.y, bbox.min.z, bbox.max.x, bbox.max.y, bbox.max.z); size_t ret = c4::unformat(c4::to_csubstr(node.Scalar().c_str()), "({},{},{}),({},{},{})", bbox.min.x, bbox.min.y, bbox.min.z, bbox.max.x, bbox.max.y, bbox.max.z);
return ret != c4::csubstr::npos; return ret != c4::csubstr::npos;
} }
return false; return false;
} }
}; };
} }