violet: 32bit fix

This commit is contained in:
Alex Coyte 2016-07-15 14:32:21 +10:00 committed by Matthew Barr
parent 5c5ec905cc
commit 34289eb3b4

View File

@ -1718,7 +1718,7 @@ bool makeTransientFromLongLiteral(NGHolder &h, RoseInGraph &vg,
const vector<RoseInEdge> &ee, const vector<RoseInEdge> &ee,
const CompileContext &cc) { const CompileContext &cc) {
/* check max width and literal lengths to see if possible */ /* check max width and literal lengths to see if possible */
size_t min_lit = ~0ULL; size_t min_lit = (size_t)~0ULL;
for (const RoseInEdge &e : ee) { for (const RoseInEdge &e : ee) {
RoseInVertex v = target(e, vg); RoseInVertex v = target(e, vg);
LIMIT_TO_AT_MOST(&min_lit, vg[v].s.length()); LIMIT_TO_AT_MOST(&min_lit, vg[v].s.length());