int getword_atol(long int *number, struct getwordstruct *gwarea, char stop)
{
- long int x;
+ int x;
long int sign=+1;
int digit;
*number=(*number * 10) + digit;
}
if(gwarea->current[x] && gwarea->current[x]!=stop) {
- debuga(_("End of number not found in %s after %ld bytes.\n"),__func__,x);
+ debuga(_("End of number not found in %s after %d bytes.\n"),__func__,x);
debuga(_("Line=\"%s\"\n"),gwarea->beginning);
debuga(_("Record=\"%s\"\n"),gwarea->current);
debuga(_("searching for \'x%x\'\n"),stop);
int getword_atolu(unsigned long int *number, struct getwordstruct *gwarea, char stop)
{
- unsigned long int x;
+ int x;
int digit;
if (gwarea->current[0] == '-') {
*number=(*number * 10) + digit;
}
if(gwarea->current[x] && gwarea->current[x]!=stop) {
- debuga(_("End of number not found in %s after %ld bytes.\n"),__func__,x);
+ debuga(_("End of number not found in %s after %d bytes.\n"),__func__,x);
debuga(_("Line=\"%s\"\n"),gwarea->beginning);
debuga(_("Record=\"%s\"\n"),gwarea->current);
debuga(_("searching for \'x%x\'\n"),stop);