about summary refs log tree commit diff
path: root/src/libfourcc
diff options
context:
space:
mode:
Diffstat (limited to 'src/libfourcc')
-rw-r--r--src/libfourcc/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libfourcc/lib.rs b/src/libfourcc/lib.rs
index 4596c98cffd..bac5b6e1013 100644
--- a/src/libfourcc/lib.rs
+++ b/src/libfourcc/lib.rs
@@ -124,7 +124,7 @@ pub fn expand_syntax_ext(cx: &mut ExtCtxt, sp: Span, tts: &[ast::TokenTree])
             (val << 8) | (byte as u32)
         };
     }
-    let e = cx.expr_lit(sp, ast::LitUint(val as u64, ast::TyU32));
+    let e = cx.expr_lit(sp, ast::LitInt(val as u64, ast::UnsignedIntLit(ast::TyU32)));
     MacExpr::new(e)
 }