aboutsummaryrefslogtreecommitdiff
path: root/src/comp/front/extfmt.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/comp/front/extfmt.rs')
-rw-r--r--src/comp/front/extfmt.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/comp/front/extfmt.rs b/src/comp/front/extfmt.rs
index 54174dd3..bd5fc433 100644
--- a/src/comp/front/extfmt.rs
+++ b/src/comp/front/extfmt.rs
@@ -246,6 +246,9 @@ fn pieces_to_expr(vec[piece] pieces, vec[@ast.expr] args) -> @ast.expr {
case (ty_hex(_)) {
ret make_conv_call(arg.span, "uint", cnv, arg);
}
+ case (ty_bits) {
+ ret make_conv_call(arg.span, "uint", cnv, arg);
+ }
case (_) {
log unsupported;
fail;