Skip to content

Commit 977cb1b

Browse files
committed
Better key type.
1 parent 704f5fa commit 977cb1b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Auth/FirebaseAuthUI/FUIAuthBaseViewController.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,8 +294,8 @@ + (void)showAlertWithTitle:(nullable NSString *)title
294294
Earlier iOS versions established a strong reference to the window when makeKeyAndVisible was called.
295295
Now we add one from the alert controller, to prevent objects from getting garbage collected right away.
296296
*/
297-
static void *key;
298-
objc_setAssociatedObject(alertController, key, window, OBJC_ASSOCIATION_RETAIN_NONATOMIC);
297+
static char key;
298+
objc_setAssociatedObject(alertController, &key, window, OBJC_ASSOCIATION_RETAIN_NONATOMIC);
299299
}
300300
}
301301
}

0 commit comments

Comments
 (0)