From 026528f70abddd65ace36b04aaeb64c99eeb66ea Mon Sep 17 00:00:00 2001 From: creative-quant Date: Thu, 22 Oct 2015 22:36:30 -0400 Subject: [PATCH] Added macro TTMATH_INT_SIZE --- include/Decimal.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/Decimal.hpp b/include/Decimal.hpp index f8e0d16..001c014 100644 --- a/include/Decimal.hpp +++ b/include/Decimal.hpp @@ -37,10 +37,11 @@ namespace voltdb { //The int used for storage and return values #ifdef TTMATH_PLATFORM64 -typedef ttmath::Int<2> TTInt; +#define TTMATH_INT_SIZE 2 #else -typedef ttmath::Int<4> TTInt; +#define TTMATH_INT_SIZE 4 #endif +typedef ttmath::Int TTInt; /* * A class for constructing Decimal values with the fixed precision and scale supported by VoltDB