Index: trunk/ippTools/src/regtool.c
===================================================================
--- trunk/ippTools/src/regtool.c	(revision 18328)
+++ trunk/ippTools/src/regtool.c	(revision 18336)
@@ -170,5 +170,5 @@
 
     // required
-    PXOPT_LOOKUP_STR(exp_id, config->args, "-exp_id", true, false);
+    PXOPT_LOOKUP_S64(exp_id, config->args, "-exp_id", true, false);
     PXOPT_LOOKUP_STR(exp_name, config->args, "-exp_name", true, false);
     PXOPT_LOOKUP_STR(camera, config->args, "-inst", true, false);
@@ -230,5 +230,5 @@
     if (!rawImfileInsert(
         config->dbh,
-        (psS64)atoll(exp_id),
+        exp_id,
         exp_name,
         camera,
@@ -496,5 +496,5 @@
 
     // required
-    PXOPT_LOOKUP_STR(exp_id, config->args, "-exp_id", true, false);
+    PXOPT_LOOKUP_S64(exp_id, config->args, "-exp_id", true, false);
     PXOPT_LOOKUP_STR(exp_name, config->args, "-exp_name", true, false);
     PXOPT_LOOKUP_STR(camera, config->args, "-inst", true, false);
@@ -569,5 +569,5 @@
         // build a query to search by exp_id
         psMetadata *where = psMetadataAlloc();
-        if (!psMetadataAddStr(where, PS_LIST_TAIL, "newExp.exp_id", 0, "==", exp_id)) {
+        if (!psMetadataAddS64(where, PS_LIST_TAIL, "newExp.exp_id", 0, "==", exp_id)) {
             psError(PS_ERR_UNKNOWN, false, "failed to add item exp_id");
             psFree(where);
@@ -652,5 +652,5 @@
 
     if (!rawExpInsert(config->dbh,
-        (psS64)atoll(exp_id),
+        exp_id,
         exp_name,
         camera,
@@ -726,5 +726,5 @@
             psError(PS_ERR_UNKNOWN, false, "database error");
         }
-        psError(PS_ERR_UNKNOWN, false, "failed to change newExp.state for exp_id: %s", exp_id);
+        psError(PS_ERR_UNKNOWN, false, "failed to change newExp.state for exp_id: %"PRId64, exp_id);
     psFree(newExp);
         return false;
@@ -749,5 +749,5 @@
     // this can only be run as the newExp's state has been set to stop
     if (!pxchipQueueByExpTag(config,
-                (psS64)atoll(exp_id),
+                exp_id,
                 workdir,
             label,
@@ -797,5 +797,5 @@
 
     // XX test this out; need to make this consistent with the list in regtoolConfig.c
-    PXOPT_COPY_STR(config->args, config->where,  "-exp_id", "exp_id", "==");
+    PXOPT_COPY_S64(config->args, config->where,  "-exp_id", "exp_id", "==");
     PXOPT_COPY_STR(config->args, config->where,  "-exp_name", "exp_name", "==");
     PXOPT_COPY_STR(config->args, config->where,  "-inst", "camera", "==");
