Replace gmx_large_int_t with gmx_int64_t
[alexxy/gromacs.git] / src / gromacs / gmxlib / readinp.c
index 8e007072ef0b3b95fb4aa78b645189eb379374b0..9875d87a83ec40f83781ae5e8ad11945b9149a25 100644 (file)
@@ -396,26 +396,26 @@ int get_eint(int *ninp, t_inpfile **inp, const char *name, int def,
     }
 }
 
-gmx_large_int_t get_egmx_large_int(int *ninp, t_inpfile **inp,
-                                   const char *name, gmx_large_int_t def,
-                                   warninp_t wi)
+gmx_int64_t get_eint64(int *ninp, t_inpfile **inp,
+                       const char *name, gmx_int64_t def,
+                       warninp_t wi)
 {
     char            buf[32], *ptr, warn_buf[STRLEN];
     int             ii;
-    gmx_large_int_t ret;
+    gmx_int64_t     ret;
 
     ii = get_einp(ninp, inp, name);
 
     if (ii == -1)
     {
-        sprintf(buf, gmx_large_int_pfmt, def);
+        sprintf(buf, "%"GMX_PRId64, def);
         (*inp)[(*ninp)-1].value = strdup(buf);
 
         return def;
     }
     else
     {
-        ret = str_to_large_int_t((*inp)[ii].value, &ptr);
+        ret = str_to_int64_t((*inp)[ii].value, &ptr);
         if (ptr == (*inp)[ii].value)
         {
             sprintf(warn_buf, "Right hand side '%s' for parameter '%s' in parameter file is not an integer value\n", (*inp)[ii].value, (*inp)[ii].name);