mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
More unconstify use
Replace casts whose only purpose is to cast away const with the unconstify() macro. Discussion: https://www.postgresql.org/message-id/flat/53a28052-f9f3-1808-fed9-460fd43035ab%402ndquadrant.com
This commit is contained in:
@ -2050,7 +2050,7 @@ mp_int_read_cstring(mp_int z, mp_size radix, const char *str, char **end)
|
||||
MP_SIGN(z) = MP_ZPOS;
|
||||
|
||||
if (end != NULL)
|
||||
*end = (char *) str;
|
||||
*end = unconstify(char *, str);
|
||||
|
||||
/*
|
||||
* Return a truncation error if the string has unprocessed characters
|
||||
|
Reference in New Issue
Block a user