diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2012-09-26 12:30:20 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2012-09-26 13:31:45 +0200 |
commit | 6189ffc7ed709912a2439cdbd45d5e4af15d23e8 (patch) | |
tree | fbc8c9696a9542f2ef334b244ad1a194ebd7530f /idlc | |
parent | sal_Bool -> bool (diff) | |
download | core-6189ffc7ed709912a2439cdbd45d5e4af15d23e8.tar.gz core-6189ffc7ed709912a2439cdbd45d5e4af15d23e8.zip |
Fix bool -> byte coercion logic
Change-Id: Iab6dba9484fb5ddb8a8d4efcd46d7b9c8d1acca8
Diffstat (limited to 'idlc')
-rw-r--r-- | idlc/source/astexpression.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/idlc/source/astexpression.cxx b/idlc/source/astexpression.cxx index 783ee6643dda..b28cfed3619c 100644 --- a/idlc/source/astexpression.cxx +++ b/idlc/source/astexpression.cxx @@ -667,7 +667,7 @@ coerce_value(AstExprValue *ev, ExprType t) ev->et = ET_byte; return ev; case ET_boolean: - ev->u.byval = (ev->u.bval == false) ? 1 : 0; + ev->u.byval = ev->u.bval ? 1 : 0; ev->et = ET_byte; return ev; case ET_float: |