Move variable declarations before actual code

pull/2323/head
Marcin Wyszynski 8 years ago committed by GitHub
parent cb81314b1b
commit 74a636a7a2
  1. 4
      ruby/ext/google/protobuf_c/message.c

@ -342,11 +342,11 @@ VALUE Message_deep_copy(VALUE _self) {
* field is of a primitive type).
*/
VALUE Message_eq(VALUE _self, VALUE _other) {
MessageHeader* self;
MessageHeader* other;
if (TYPE(_self) != TYPE(_other)) {
return Qfalse;
}
MessageHeader* self;
MessageHeader* other;
TypedData_Get_Struct(_self, MessageHeader, &Message_type, self);
TypedData_Get_Struct(_other, MessageHeader, &Message_type, other);

Loading…
Cancel
Save