mirror of
https://github.com/postgres/postgres.git
synced 2025-11-21 00:42:43 +03:00
Apply unconstify() in more places
Discussion: https://www.postgresql.org/message-id/08adbe4e-38f8-2c73-55f0-591392371687%402ndquadrant.com
This commit is contained in:
@@ -207,12 +207,12 @@ IsValidJsonNumber(const char *str, int len)
|
||||
*/
|
||||
if (*str == '-')
|
||||
{
|
||||
dummy_lex.input = (char *) str + 1;
|
||||
dummy_lex.input = unconstify(char *, str) + 1;
|
||||
dummy_lex.input_length = len - 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
dummy_lex.input = (char *) str;
|
||||
dummy_lex.input = unconstify(char *, str);
|
||||
dummy_lex.input_length = len;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user