From 63713e5567ccee98d299f10abffdfecea1948426 Mon Sep 17 00:00:00 2001 From: David Dawes Date: Sun, 14 Oct 2018 21:23:03 -0700 Subject: [PATCH] Force unsigned 64 bit, not u32. --- src/snark/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/snark/Makefile b/src/snark/Makefile index f957ab12e..7bcae4c94 100644 --- a/src/snark/Makefile +++ b/src/snark/Makefile @@ -16,7 +16,7 @@ endif # To override these, use "make OPTFLAGS=..." etc. CURVE = BN128 OPTFLAGS = -O2 -march=x86-64 -g -mtune=x86-64 -FEATUREFLAGS = -DUSE_ASM -DMONTGOMERY_OUTPUT +FEATUREFLAGS = -DUSE_ASM -DMONTGOMERY_OUTPUT -D__SIZE_TYPE__="unsigned long long" # Initialize this using "CXXFLAGS=... make". The makefile appends to that. CXXFLAGS += -std=c++11 -Wall -Wextra -Wno-unused-parameter -Wno-comment -Wfatal-errors $(OPTFLAGS) $(FEATUREFLAGS) -DCURVE_$(CURVE)