From 3f9a7051407be2562721471e2829bb2e73d391ed Mon Sep 17 00:00:00 2001 From: Damiano Galassi Date: Wed, 13 Feb 2019 17:56:02 +0100 Subject: MacGui: remove two old unused classes, remove some old compatibility hacks, and fix warnings. --- macosx/HBCore.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'macosx/HBCore.m') diff --git a/macosx/HBCore.m b/macosx/HBCore.m index 391153dbb..40117d4f5 100644 --- a/macosx/HBCore.m +++ b/macosx/HBCore.m @@ -112,7 +112,7 @@ typedef void (^HBCoreCleanupHandler)(void); bzero(_hb_state, sizeof(hb_state_t)); _logLevel = level; - _hb_handle = hb_init(level); + _hb_handle = hb_init((int)level); if (!_hb_handle) { return nil; @@ -144,10 +144,10 @@ typedef void (^HBCoreCleanupHandler)(void); free(_hb_state); } -- (void)setLogLevel:(int)logLevel +- (void)setLogLevel:(NSInteger)logLevel { _logLevel = logLevel; - hb_log_level_set(_hb_handle, logLevel); + hb_log_level_set(_hb_handle, (int)logLevel); } - (void)preventSleep -- cgit v1.2.3