diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-10-30 22:45:03 +0000 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-10-30 22:45:03 +0000 |
| commit | 989deafd5e2b7962e9eb27bb3ec0cd7ee9dd107b (patch) | |
| tree | c6b8239316d3f887613b1cfd232d28d768a40316 /src/debug/HyprCtl.cpp | |
| parent | 9f1d7f7fc709ae3360f7ec229e9fd1e32b894ace (diff) | |
use lld instead of i in hyprctl getopt for accurate int reads
Diffstat (limited to 'src/debug/HyprCtl.cpp')
| -rw-r--r-- | src/debug/HyprCtl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/debug/HyprCtl.cpp b/src/debug/HyprCtl.cpp index b43666fe..494efcd4 100644 --- a/src/debug/HyprCtl.cpp +++ b/src/debug/HyprCtl.cpp @@ -728,13 +728,13 @@ std::string dispatchGetOption(std::string request, HyprCtl::eHyprCtlOutputFormat return "no such option"; 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 { return getFormat( R"#( { "option": "%s", - "int": %i, + "int": %lld, "float": %f, "str": "%s" } |
