Skip to content

Commit

Permalink
fix stupid error
Browse files Browse the repository at this point in the history
  • Loading branch information
arielb1 committed Oct 15, 2014
1 parent e74e059 commit cedfde9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/librustc/middle/trans/common.rs
Expand Up @@ -26,6 +26,7 @@ use middle::trans::build;
use middle::trans::cleanup;
use middle::trans::datum;
use middle::trans::debuginfo;
use middle::trans::machine;
use middle::trans::type_::Type;
use middle::trans::type_of;
use middle::traits;
Expand Down Expand Up @@ -598,7 +599,7 @@ pub fn C_u64(ccx: &CrateContext, i: u64) -> ValueRef {
pub fn C_int<I: AsI64>(ccx: &CrateContext, i: I) -> ValueRef {
let v = i.as_i64();

match machine::llbitsize_of_real(ccx.int_type()) {
match machine::llbitsize_of_real(ccx, ccx.int_type()) {
32 => assert!(v < (1<<31) && v >= -(1<<31)),
64 => {},
n => fail!("unsupported target size: {}", n)
Expand All @@ -610,7 +611,7 @@ pub fn C_int<I: AsI64>(ccx: &CrateContext, i: I) -> ValueRef {
pub fn C_uint<I: AsU64>(ccx: &CrateContext, i: I) -> ValueRef {
let v = i.as_u64();

match machine::llbitsize_of_real(ccx.int_type()) {
match machine::llbitsize_of_real(ccx, ccx.int_type()) {
32 => assert!(v < (1<<32)),
64 => {},
n => fail!("unsupported target size: {}", n)
Expand Down

0 comments on commit cedfde9

Please sign in to comment.