@@ -48,7 +48,7 @@ get_val( HSParser *state, bool ignoreeq, bool *escaped ) {
4848}else if (* (state -> ptr )== '\0' ) {
4949return false;
5050}else if (* (state -> ptr )== '=' && !ignoreeq ) {
51- elog (ERROR ,"Syntax error near '%c' at postion %d" ,* (state -> ptr ),state -> ptr - state -> begin );
51+ elog (ERROR ,"Syntax error near '%c' at postion %d" ,* (state -> ptr ),( int4 )( state -> ptr - state -> begin ) );
5252}else if (* (state -> ptr )== '\\' ) {
5353st = GV_WAITESCIN ;
5454}else if ( !isspace (* (state -> ptr )) ) {
@@ -147,15 +147,15 @@ parse_hstore( HSParser *state ) {
147147}else if (* (state -> ptr )== '\0' ) {
148148elog (ERROR ,"Unexpectd end of string" );
149149}else if (!isspace (* (state -> ptr ))) {
150- elog (ERROR ,"Syntax error near '%c' at postion %d" ,* (state -> ptr ),state -> ptr - state -> begin );
150+ elog (ERROR ,"Syntax error near '%c' at postion %d" ,* (state -> ptr ),( int4 )( state -> ptr - state -> begin ) );
151151}
152152}else if (st == WGT ) {
153153if (* (state -> ptr )== '>' ) {
154154st = WVAL ;
155155}else if (* (state -> ptr )== '\0' ) {
156156elog (ERROR ,"Unexpectd end of string" );
157157}else {
158- elog (ERROR ,"Syntax error near '%c' at postion %d" ,* (state -> ptr ),state -> ptr - state -> begin );
158+ elog (ERROR ,"Syntax error near '%c' at postion %d" ,* (state -> ptr ),( int4 )( state -> ptr - state -> begin ) );
159159}
160160}else if (st == WVAL ) {
161161if ( !get_val (state , true,& escaped ) )
@@ -178,7 +178,7 @@ parse_hstore( HSParser *state ) {
178178}else if (* (state -> ptr )== '\0' ) {
179179return ;
180180}else if (!isspace (* (state -> ptr ))) {
181- elog (ERROR ,"Syntax error near '%c' at postion %d" ,* (state -> ptr ),state -> ptr - state -> begin );
181+ elog (ERROR ,"Syntax error near '%c' at postion %d" ,* (state -> ptr ),( int4 )( state -> ptr - state -> begin ) );
182182}
183183}else
184184elog (ERROR ,"Unknown state %d at line %d in file '%s'" ,st ,__LINE__ ,__FILE__ );