diff options
Diffstat (limited to 'prism/templates/src')
-rw-r--r-- | prism/templates/src/serialize.c.erb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/prism/templates/src/serialize.c.erb b/prism/templates/src/serialize.c.erb index e985e72ec3..9528496c7d 100644 --- a/prism/templates/src/serialize.c.erb +++ b/prism/templates/src/serialize.c.erb @@ -150,11 +150,11 @@ static void pm_serialize_magic_comment(pm_parser_t *parser, pm_magic_comment_t *magic_comment, pm_buffer_t *buffer) { // serialize key location pm_buffer_append_u32(buffer, pm_ptrdifft_to_u32(magic_comment->key_start - parser->start)); - pm_buffer_append_u32(buffer, pm_ptrdifft_to_u32(magic_comment->key_length)); + pm_buffer_append_u32(buffer, pm_sizet_to_u32(magic_comment->key_length)); // serialize value location pm_buffer_append_u32(buffer, pm_ptrdifft_to_u32(magic_comment->value_start - parser->start)); - pm_buffer_append_u32(buffer, pm_ptrdifft_to_u32(magic_comment->value_length)); + pm_buffer_append_u32(buffer, pm_sizet_to_u32(magic_comment->value_length)); } static void |