@@ -554,7 +554,7 @@ check_metadata(multiset_t const * i_omp, multiset_t const * i_imp)
554
554
ereport (ERROR ,
555
555
(errcode (ERRCODE_DATA_EXCEPTION ),
556
556
errmsg ("explicit threshold does not match: "
557
- "source uses %ld and dest uses %ld" ,
557
+ "source uses " INT64_FORMAT " and dest uses " INT64_FORMAT ,
558
558
i_imp -> ms_expthresh , i_omp -> ms_expthresh )));
559
559
}
560
560
@@ -674,9 +674,9 @@ multiset_tostring(multiset_t const * i_msp)
674
674
// with the automatically determined value.
675
675
//
676
676
if (expthresh == -1 )
677
- snprintf (expbuf , sizeof (expbuf ), "%ld (%ld)" , expthresh , expval );
677
+ snprintf (expbuf , sizeof (expbuf ), INT64_FORMAT " (%ld)" , expthresh , expval );
678
678
else
679
- snprintf (expbuf , sizeof (expbuf ), "%ld" , expthresh );
679
+ snprintf (expbuf , sizeof (expbuf ), INT64_FORMAT , expthresh );
680
680
681
681
// Allocate an initial return buffer.
682
682
len = 1024 ;
@@ -1771,7 +1771,7 @@ hll_typmod_out(PG_FUNCTION_ARGS)
1771
1771
char * typmodstr ;
1772
1772
1773
1773
memset (buffer , '\0' , sizeof (buffer ));
1774
- snprintf (buffer , sizeof (buffer ), "(%d,%d,%ld ,%d)" ,
1774
+ snprintf (buffer , sizeof (buffer ), "(%d,%d," INT64_FORMAT " ,%d)" ,
1775
1775
log2m , regwidth , expthresh , sparseon );
1776
1776
1777
1777
len = strlen (buffer ) + 1 ;
0 commit comments