Move variable declarations before actual code

This commit is contained in:
Marcin Wyszynski 2016-11-14 21:45:37 +01:00 committed by GitHub
parent cb81314b1b
commit 74a636a7a2

View file

@ -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);