diff --git a/objc-appscript/trunk/src/Appscript/codecs.m b/objc-appscript/trunk/src/Appscript/codecs.m index da2bee4..8731234 100644 --- a/objc-appscript/trunk/src/Appscript/codecs.m +++ b/objc-appscript/trunk/src/Appscript/codecs.m @@ -122,7 +122,7 @@ - (NSAppleEventDescriptor *)pack:(id)anObject { case 'q': packAsSInt64: sint64 = [anObject longLongValue]; - if (sint64 >= 0x80000000 && sint64 < 0x7FFFFFFF) + if (sint64 <= -0x80000000 && sint64 < 0x7FFFFFFF) goto packAsSInt32; result = [NSAppleEventDescriptor descriptorWithDescriptorType: typeSInt64 bytes: &sint64