@@ -488,7 +488,8 @@ static int Map_initialize_kwarg(VALUE key, VALUE val, VALUE _self) {
488
488
k = Convert_RubyToUpb (key , "" , map_init -> key_type , NULL );
489
489
490
490
if (map_init -> val_type .type == kUpb_CType_Message && TYPE (val ) == T_HASH ) {
491
- upb_MiniTable * t = upb_MessageDef_MiniTable (map_init -> val_type .def .msgdef );
491
+ const upb_MiniTable * t =
492
+ upb_MessageDef_MiniTable (map_init -> val_type .def .msgdef );
492
493
upb_Message * msg = upb_Message_New (t , map_init -> arena );
493
494
Message_InitFromValue (msg , map_init -> val_type .def .msgdef , val ,
494
495
map_init -> arena );
@@ -519,7 +520,7 @@ static upb_MessageValue MessageValue_FromValue(VALUE val, TypeInfo info,
519
520
upb_Arena * arena ) {
520
521
if (info .type == kUpb_CType_Message ) {
521
522
upb_MessageValue msgval ;
522
- upb_MiniTable * t = upb_MessageDef_MiniTable (info .def .msgdef );
523
+ const upb_MiniTable * t = upb_MessageDef_MiniTable (info .def .msgdef );
523
524
upb_Message * msg = upb_Message_New (t , arena );
524
525
Message_InitFromValue (msg , info .def .msgdef , val , arena );
525
526
msgval .msg_val = msg ;
@@ -635,7 +636,7 @@ static VALUE Message_initialize(int argc, VALUE* argv, VALUE _self) {
635
636
Message * self = ruby_to_Message (_self );
636
637
VALUE arena_rb = Arena_new ();
637
638
upb_Arena * arena = Arena_get (arena_rb );
638
- upb_MiniTable * t = upb_MessageDef_MiniTable (self -> msgdef );
639
+ const upb_MiniTable * t = upb_MessageDef_MiniTable (self -> msgdef );
639
640
upb_Message * msg = upb_Message_New (t , arena );
640
641
641
642
Message_InitPtr (_self , msg , arena_rb );
@@ -678,7 +679,8 @@ bool Message_Equal(const upb_Message* m1, const upb_Message* m2,
678
679
if (upb_Status_IsOk (& status )) {
679
680
return return_value ;
680
681
} else {
681
- rb_raise (cParseError , upb_Status_ErrorMessage (& status ));
682
+ rb_raise (cParseError , "Message_Equal(): %s" ,
683
+ upb_Status_ErrorMessage (& status ));
682
684
}
683
685
}
684
686
@@ -709,7 +711,8 @@ uint64_t Message_Hash(const upb_Message* msg, const upb_MessageDef* m,
709
711
if (upb_Status_IsOk (& status )) {
710
712
return return_value ;
711
713
} else {
712
- rb_raise (cParseError , upb_Status_ErrorMessage (& status ));
714
+ rb_raise (cParseError , "Message_Hash(): %s" ,
715
+ upb_Status_ErrorMessage (& status ));
713
716
}
714
717
}
715
718
0 commit comments