diff options
author | Kevin Newton <[email protected]> | 2023-11-30 20:59:00 -0500 |
---|---|---|
committer | Kevin Newton <[email protected]> | 2023-11-30 21:37:56 -0500 |
commit | e2bbbacc233b1b1c13298baff9eacfe1ef0052f4 (patch) | |
tree | c3d5f5e7f96041acc8e483479996a29e1157b4d2 /prism/util/pm_memchr.h | |
parent | b4a85e402f0f4d33a3dd3eb58b6312207549d415 (diff) |
[ruby/prism] Correctly pass around const pm_encoding_t *
https://github.com/ruby/prism/commit/ce4c67fb3a
Diffstat (limited to 'prism/util/pm_memchr.h')
-rw-r--r-- | prism/util/pm_memchr.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/prism/util/pm_memchr.h b/prism/util/pm_memchr.h index fd5879a201..e0671eaed3 100644 --- a/prism/util/pm_memchr.h +++ b/prism/util/pm_memchr.h @@ -24,6 +24,6 @@ * @return A pointer to the first occurrence of the character in the source * string, or NULL if no such character exists. */ -void * pm_memchr(const void *source, int character, size_t number, bool encoding_changed, pm_encoding_t *encoding); +void * pm_memchr(const void *source, int character, size_t number, bool encoding_changed, const pm_encoding_t *encoding); #endif |