mirror of
https://github.com/wassname/ray.git
synced 2026-07-18 12:40:56 +08:00
Bool config string stream must be in true or 1 (#9292)
This commit is contained in:
@@ -58,7 +58,8 @@ class RayConfig {
|
||||
value.end(), \
|
||||
value.begin(), \
|
||||
::tolower); \
|
||||
name##_ = value == "true"; \
|
||||
name##_ = value == "true" || \
|
||||
value == "1"; \
|
||||
} else { \
|
||||
std::istringstream stream(pair.second); \
|
||||
stream >> name##_; \
|
||||
|
||||
Reference in New Issue
Block a user