Mercurial > projects > ldc
comparison gen/llvmhelpers.cpp @ 794:661384d6a936
Fix warnings on x86-64. By fvbommel.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Fri, 28 Nov 2008 21:24:08 +0100 |
parents | a45179dfaa43 |
children | 6e7a4c3b64d2 |
comparison
equal
deleted
inserted
replaced
793:f6dd817060fc | 794:661384d6a936 |
---|---|
1647 | 1647 |
1648 char tmp[10]; | 1648 char tmp[10]; |
1649 if (T->toBasetype()->ty == Tbool) // otherwise we'd get a mismatch | 1649 if (T->toBasetype()->ty == Tbool) // otherwise we'd get a mismatch |
1650 sprintf(tmp, "1"); | 1650 sprintf(tmp, "1"); |
1651 else | 1651 else |
1652 sprintf(tmp, "%d", T->size()*8); | 1652 sprintf(tmp, "%lu", T->size()*8); |
1653 | 1653 |
1654 // replace # in name with bitsize | 1654 // replace # in name with bitsize |
1655 name = td->intrinsicName; | 1655 name = td->intrinsicName; |
1656 | 1656 |
1657 std::string needle("#"); | 1657 std::string needle("#"); |