]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
violet: 32bit fix
authorAlex Coyte <a.coyte@intel.com>
Fri, 15 Jul 2016 04:32:21 +0000 (14:32 +1000)
committerMatthew Barr <matthew.barr@intel.com>
Wed, 10 Aug 2016 05:01:28 +0000 (15:01 +1000)
src/nfagraph/ng_violet.cpp

index 0d1c1c1240a2e582a257046476c4917d88df997f..c4089f7dcb4a5322065be05f8babcee989b750cd 100644 (file)
@@ -1718,7 +1718,7 @@ bool makeTransientFromLongLiteral(NGHolder &h, RoseInGraph &vg,
                                   const vector<RoseInEdge> &ee,
                                   const CompileContext &cc) {
     /* 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) {
         RoseInVertex v = target(e, vg);
         LIMIT_TO_AT_MOST(&min_lit, vg[v].s.length());