diff options
author | Marcin Wyszynski <marcin.pixie@gmail.com> | 2016-11-14 21:45:37 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-14 21:45:37 +0100 |
commit | 74a636a7a29132ff89b4d8a487618d9a411fdaa4 (patch) | |
tree | f46812d6505c76ad20a041c46dadf40533c177b4 | |
parent | cb81314b1bb1610c80607a2750eda546f9fa6fa2 (diff) | |
download | protobuf-74a636a7a29132ff89b4d8a487618d9a411fdaa4.tar.gz protobuf-74a636a7a29132ff89b4d8a487618d9a411fdaa4.tar.bz2 protobuf-74a636a7a29132ff89b4d8a487618d9a411fdaa4.zip |
Move variable declarations before actual code
-rw-r--r-- | ruby/ext/google/protobuf_c/message.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ruby/ext/google/protobuf_c/message.c b/ruby/ext/google/protobuf_c/message.c index ed7c133e..837a974b 100644 --- a/ruby/ext/google/protobuf_c/message.c +++ b/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); |