projects
/
cycript.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0da459f
)
Output a smaller representation of true and false.
author
Jay Freeman (saurik)
<saurik@saurik.com>
Tue, 24 Nov 2015 11:08:12 +0000
(
03:08
-0800)
committer
Jay Freeman (saurik)
<saurik@saurik.com>
Tue, 24 Nov 2015 11:08:12 +0000
(
03:08
-0800)
Output.cpp
patch
|
blob
|
blame
|
history
diff --git
a/Output.cpp
b/Output.cpp
index d45a7397489e928d45471a4501acea9f23b3c809..a26e3e746cfc229a44e37328c2ed8a513eaa321c 100644
(file)
--- a/
Output.cpp
+++ b/
Output.cpp
@@
-147,7
+147,9
@@
void CYBlock::Output(CYOutput &out, CYFlags flags) const {
}
void CYBoolean::Output(CYOutput &out, CYFlags flags) const {
- out << (Value() ? "true" : "false");
+ out << '!' << (Value() ? "0" : "1");
+ if ((flags & CYNoInteger) != 0)
+ out << '.';
}
void CYBreak::Output(CYOutput &out, CYFlags flags) const {