*** pgsql.virg/src/backend/utils/adt/int8.c Sat Apr 14 16:07:18 2001 --- pgsql/src/backend/utils/adt/int8.c Tue Aug 7 03:05:27 2001 *************** *** 77,83 **** elog(ERROR, "Bad int8 external representation \"%s\"", str); while (*ptr && isdigit((unsigned char) *ptr)) /* process digits */ { ! int64 newtmp = tmp * 10 + (*ptr++ - '0'); if ((newtmp / 10) != tmp) /* overflow? */ elog(ERROR, "int8 value out of range: \"%s\"", str); --- 77,83 ---- elog(ERROR, "Bad int8 external representation \"%s\"", str); while (*ptr && isdigit((unsigned char) *ptr)) /* process digits */ { ! int64 newtmp = tmp * 10 + (*ptr++ - '0') * sign; if ((newtmp / 10) != tmp) /* overflow? */ elog(ERROR, "int8 value out of range: \"%s\"", str); *************** *** 86,92 **** if (*ptr) /* trailing junk? */ elog(ERROR, "Bad int8 external representation \"%s\"", str); ! result = (sign < 0) ? -tmp : tmp; PG_RETURN_INT64(result); } --- 86,92 ---- if (*ptr) /* trailing junk? */ elog(ERROR, "Bad int8 external representation \"%s\"", str); ! result = tmp; PG_RETURN_INT64(result); }