]> git.eshelyaron.com Git - emacs.git/commitdiff
Use NSNumber instead of BOOL (bug#39047)
authorVäinö Järvelä <vaino@jarve.la>
Thu, 9 Jan 2020 06:01:59 +0000 (08:01 +0200)
committerAlan Third <alan@idiocy.org>
Thu, 9 Jan 2020 20:04:27 +0000 (20:04 +0000)
* src/nsfns.m (ns_set_represented_filename): Use correct type.

Copyright-paperwork-exempt: yes

src/nsfns.m

index 13ff67df0924f19c64486987a66ca0a08ef41080..93d5a1e9488f2f945233d44dfc6cb820ca7ba964 100644 (file)
@@ -493,11 +493,11 @@ ns_set_represented_filename (struct frame *f)
 #if defined (NS_IMPL_COCOA) && defined (MAC_OS_X_VERSION_10_7)
   /* Work around for Mach port leaks on macOS 10.15 (bug#38618).  */
   NSURL *fileURL = [NSURL fileURLWithPath:fstr isDirectory:NO];
-  BOOL isUbiquitousItem = YES;
+  NSNumber *isUbiquitousItem = @YES;
   [fileURL getResourceValue:(id *)&isUbiquitousItem
                      forKey:NSURLIsUbiquitousItemKey
                       error:nil];
-  if (isUbiquitousItem)
+  if ([isUbiquitousItem boolValue])
     fstr = @"";
 #endif