git.annexia.org
/
whenjobs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f58f89
)
Fix matching on true/false identifier (for boolean literals).
author
Richard W.M. Jones
<rjones@redhat.com>
Tue, 21 Feb 2012 08:47:58 +0000
(08:47 +0000)
committer
Richard W.M. Jones
<rjones@redhat.com>
Tue, 21 Feb 2012 08:47:58 +0000
(08:47 +0000)
lib/whenutils.ml
patch
|
blob
|
history
diff --git
a/lib/whenutils.ml
b/lib/whenutils.ml
index
362f4f6
..
643da7d
100644
(file)
--- a/
lib/whenutils.ml
+++ b/
lib/whenutils.ml
@@
-132,8
+132,8
@@
let rec expr_of_ast _loc ast =
expr_of_iexpr _loc (iexpr_of_ast _loc ast)
and iexpr_of_ast _loc = function
- | ExId (_, Id
Lid (_, "t
rue")) -> IExpr_bool true
- | ExId (_, Id
Lid (_, "f
alse")) -> IExpr_bool false
+ | ExId (_, Id
Uid (_, "T
rue")) -> IExpr_bool true
+ | ExId (_, Id
Uid (_, "F
alse")) -> IExpr_bool false
| ExStr (_, str) -> IExpr_str str
| ExInt (_, i) -> IExpr_int (big_int_of_string i) (* XXX too large? *)
| ExFlo (_, f) -> IExpr_float (float_of_string f)