From 42f9808cc084c06fa54b610928dfe5eed4240dd1 Mon Sep 17 00:00:00 2001 From: sjplimp Date: Fri, 29 Jul 2011 14:50:50 +0000 Subject: [PATCH] git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@6562 f3b2605a-c512-4ea7-a41b-209d697bcdaa --- src/read_restart.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/read_restart.cpp b/src/read_restart.cpp index 95c5f1d92e..d815b7ff8e 100644 --- a/src/read_restart.cpp +++ b/src/read_restart.cpp @@ -406,7 +406,7 @@ void ReadRestart::file_search(char *infile, char *outfile) strcpy(begin,pattern); strcpy(end,ptr+1); int nbegin = strlen(begin); - int maxnum = -1; + bigint maxnum = -1; struct dirent *ep; DIR *dp = opendir(dirname); @@ -419,7 +419,7 @@ void ReadRestart::file_search(char *infile, char *outfile) *ptr = '\0'; if (strlen(&ep->d_name[nbegin]) < n) { strcpy(middle,&ep->d_name[nbegin]); - if (atoi(middle) > maxnum) maxnum = atoi(middle); + if (ATOBIGINT(middle) > maxnum) maxnum = ATOBIGINT(middle); } } closedir(dp); @@ -430,7 +430,7 @@ void ReadRestart::file_search(char *infile, char *outfile) ptr = strchr(infile,'*'); *ptr = '\0'; - sprintf(outfile,"%s%d%s",infile,maxnum,ptr+1); + sprintf(outfile,"%s" BIGINT_FORMAT "%s",infile,maxnum,ptr+1); *ptr = '*'; // clean up