From 58e3b731b7a403008cc2d90d7fb95b946b5c396a Mon Sep 17 00:00:00 2001 From: Sergei Date: Fri, 4 Jan 2013 18:15:58 +0400 Subject: [PATCH] Fixed 'implicit conversion changes signedness' warning --- JREnum.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/JREnum.h b/JREnum.h index 2b1fad7..98ec290 100644 --- a/JREnum.h +++ b/JREnum.h @@ -79,9 +79,9 @@ BOOL ENUM_TYPENAME##FromString(NSString *enumLabel, ENUM_TYPENAME *enumValue) { \ NSNumber *value = [ENUM_TYPENAME##ByLabel() objectForKey:enumLabel]; \ if (value) { \ - *enumValue = [value intValue]; \ + *enumValue = (ENUM_TYPENAME)[value intValue]; \ return YES; \ } else { \ return NO; \ } \ - } \ No newline at end of file + }