diff --git a/Source/GSValue.m b/Source/GSValue.m index 48b34cc44..2b27adb05 100644 --- a/Source/GSValue.m +++ b/Source/GSValue.m @@ -126,7 +126,7 @@ typeSize(const char* type) size = (unsigned)typeSize(objctype); if (size > 0) { - if (value != 0) + if (value == 0) { [NSException raise: NSInvalidArgumentException format: @"Cannot copy value into NULL buffer"];