diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2021-06-12 13:11:59 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-12 13:11:59 (GMT) |
commit | be8b631b7a587aa781245e14c8cca32970e1be5b (patch) | |
tree | e754599e2e72d6e327667f1b8788f2d34d6fda36 /Modules | |
parent | 9f1c5f6e8af6ba3f659b2aea1e221ac9695828ba (diff) | |
download | cpython-be8b631b7a587aa781245e14c8cca32970e1be5b.zip cpython-be8b631b7a587aa781245e14c8cca32970e1be5b.tar.gz cpython-be8b631b7a587aa781245e14c8cca32970e1be5b.tar.bz2 |
Add more const modifiers. (GH-26691)
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_zoneinfo.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_zoneinfo.c b/Modules/_zoneinfo.c index 755442f..c722330 100644 --- a/Modules/_zoneinfo.c +++ b/Modules/_zoneinfo.c @@ -1468,11 +1468,11 @@ parse_tz_str(PyObject *tz_str_obj, _tzrule *out) long std_offset = 1 << 20; long dst_offset = 1 << 20; - char *tz_str = PyBytes_AsString(tz_str_obj); + const char *tz_str = PyBytes_AsString(tz_str_obj); if (tz_str == NULL) { return -1; } - char *p = tz_str; + const char *p = tz_str; // Read the `std` abbreviation, which must be at least 3 characters long. Py_ssize_t num_chars = parse_abbr(p, &std_abbr); |