mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-02 13:25:58 +01:00
use lld instead of i in hyprctl getopt for accurate int reads
This commit is contained in:
parent
9f1d7f7fc7
commit
989deafd5e
1 changed files with 2 additions and 2 deletions
|
@ -728,13 +728,13 @@ std::string dispatchGetOption(std::string request, HyprCtl::eHyprCtlOutputFormat
|
||||||
return "no such option";
|
return "no such option";
|
||||||
|
|
||||||
if (format == HyprCtl::eHyprCtlOutputFormat::FORMAT_NORMAL)
|
if (format == HyprCtl::eHyprCtlOutputFormat::FORMAT_NORMAL)
|
||||||
return getFormat("option %s\n\tint: %i\n\tfloat: %f\n\tstr: \"%s\"", curitem.c_str(), PCFGOPT->intValue, PCFGOPT->floatValue, PCFGOPT->strValue.c_str());
|
return getFormat("option %s\n\tint: %lld\n\tfloat: %f\n\tstr: \"%s\"", curitem.c_str(), PCFGOPT->intValue, PCFGOPT->floatValue, PCFGOPT->strValue.c_str());
|
||||||
else {
|
else {
|
||||||
return getFormat(
|
return getFormat(
|
||||||
R"#(
|
R"#(
|
||||||
{
|
{
|
||||||
"option": "%s",
|
"option": "%s",
|
||||||
"int": %i,
|
"int": %lld,
|
||||||
"float": %f,
|
"float": %f,
|
||||||
"str": "%s"
|
"str": "%s"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue