summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWayne Meissner <wmeissner@gmail.com>2012-02-29 22:54:50 +1000
committerWayne Meissner <wmeissner@gmail.com>2012-02-29 22:54:50 +1000
commite9034b4146331ec069d67ff128b33e75f4fee4de (patch)
treefccd92f6180aef3523f2198f977dc32956f3b6ca
parent84acca6b677661db3b5170023f585cf2fcbe0180 (diff)
downloadffi-e9034b4146331ec069d67ff128b33e75f4fee4de.tar.gz
Untabify & formatting fixups
-rw-r--r--ext/ffi_c/Pointer.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/ffi_c/Pointer.c b/ext/ffi_c/Pointer.c
index 18bd559..89f071f 100644
--- a/ext/ffi_c/Pointer.c
+++ b/ext/ffi_c/Pointer.c
@@ -292,8 +292,9 @@ ptr_equals(VALUE self, VALUE other)
Data_Get_Struct(self, Pointer, ptr);
- if (NIL_P(other))
- return ptr->memory.address == NULL ? Qtrue : Qfalse;
+ if (NIL_P(other)) {
+ return ptr->memory.address == NULL ? Qtrue : Qfalse;
+ }
return ptr->memory.address == POINTER(other)->address ? Qtrue : Qfalse;
}