From 99c59b9d709b3bfb811f28fce8cc7645797477c4 Mon Sep 17 00:00:00 2001 From: Frederik Seiffert Date: Mon, 17 Mar 2025 15:39:55 +0100 Subject: [PATCH] Fix NSNotFound definition to use NSInteger type #494 --- Headers/Foundation/NSObjCRuntime.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Headers/Foundation/NSObjCRuntime.h b/Headers/Foundation/NSObjCRuntime.h index 2703a385e..6a3cba95f 100644 --- a/Headers/Foundation/NSObjCRuntime.h +++ b/Headers/Foundation/NSObjCRuntime.h @@ -292,7 +292,7 @@ typedef NS_ENUM(NSInteger, NSComparisonResult) NSOrderedAscending = (NSInteger)-1, NSOrderedSame, NSOrderedDescending }; -enum {NSNotFound = NSIntegerMax}; +static const NSInteger NSNotFound = NSIntegerMax; DEFINE_BLOCK_TYPE(NSComparator, NSComparisonResult, id, id);