mirror of
https://github.com/postgres/postgres.git
synced 2025-11-19 13:42:17 +03:00
Use PRI?64 instead of "ll?" in format strings (continued).
Continuation of work started in commit 15a79c73, after initial trial.
Author: Thomas Munro <thomas.munro@gmail.com>
Discussion: https://postgr.es/m/b936d2fb-590d-49c3-a615-92c3a88c6c19%40eisentraut.org
This commit is contained in:
@@ -3296,8 +3296,8 @@ byteaGetBit(PG_FUNCTION_ARGS)
|
||||
if (n < 0 || n >= (int64) len * 8)
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_ARRAY_SUBSCRIPT_ERROR),
|
||||
errmsg("index %lld out of valid range, 0..%lld",
|
||||
(long long) n, (long long) len * 8 - 1)));
|
||||
errmsg("index %" PRId64 " out of valid range, 0..%" PRId64,
|
||||
n, (int64) len * 8 - 1)));
|
||||
|
||||
/* n/8 is now known < len, so safe to cast to int */
|
||||
byteNo = (int) (n / 8);
|
||||
@@ -3368,8 +3368,8 @@ byteaSetBit(PG_FUNCTION_ARGS)
|
||||
if (n < 0 || n >= (int64) len * 8)
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_ARRAY_SUBSCRIPT_ERROR),
|
||||
errmsg("index %lld out of valid range, 0..%lld",
|
||||
(long long) n, (long long) len * 8 - 1)));
|
||||
errmsg("index %" PRId64 " out of valid range, 0..%" PRId64,
|
||||
n, (int64) len * 8 - 1)));
|
||||
|
||||
/* n/8 is now known < len, so safe to cast to int */
|
||||
byteNo = (int) (n / 8);
|
||||
|
||||
Reference in New Issue
Block a user