Index: branches/eam_branches/ohana.20170822/src/libdvo/include/dvodb.h
===================================================================
--- branches/eam_branches/ohana.20170822/src/libdvo/include/dvodb.h	(revision 40122)
+++ branches/eam_branches/ohana.20170822/src/libdvo/include/dvodb.h	(revision 40168)
@@ -3,4 +3,11 @@
 
 # define MEASURE_HAS_XCCD 1
+
+// Some values used by code moved to libdvo from opihi.
+enum {OPIHI_NOTYPE, OPIHI_FLT, OPIHI_INT};
+# define opihi_flt double
+// # define opihi_int int64_t
+# define opihi_int long long int
+# define OPIHI_INT_FMT "%lld"
 
 typedef enum {
@@ -471,15 +478,15 @@
   char    type;
   int     field;
-  // opihi_flt FltValue;
-  // opihi_int IntValue;
-  double FltValue;
-  int IntValue;
+  opihi_flt FltValue;
+  opihi_int IntValue;
+  // double FltValue;
+  // int IntValue;
 } dbStack;
 
 typedef struct {
-  // opihi_flt Flt;
-  // opihi_int Int;
-  double Flt;
-  int Int;
+  opihi_flt Flt;
+  opihi_int Int;
+  // double Flt;
+  // int Int;
 } dbValue;
 
@@ -562,9 +569,4 @@
 int dbExtractImagesReset (void);
 
-// Some values used by code moved to libdvo from opihi.
-enum {OPIHI_NOTYPE, OPIHI_FLT, OPIHI_INT};
-#define opihi_flt double
-#define opihi_int int
-
 #include "get_graphdata.h"
 
Index: branches/eam_branches/ohana.20170822/src/libdvo/src/dbCheckStack.c
===================================================================
--- branches/eam_branches/ohana.20170822/src/libdvo/src/dbCheckStack.c	(revision 40122)
+++ branches/eam_branches/ohana.20170822/src/libdvo/src/dbCheckStack.c	(revision 40168)
@@ -43,5 +43,5 @@
        * an int unless proven otherwise **/
       stack[i].FltValue = strtod (stack[i].name, &c1);
-      stack[i].IntValue = strtol (stack[i].name, &c2, 0);
+      stack[i].IntValue = strtoll (stack[i].name, &c2, 0);
       if (c2 == stack[i].name + strlen (stack[i].name)) {
 	stack[i].type  |= DB_STACK_INT;
