summaryrefslogtreecommitdiffstats
path: root/macosx/HBCore.m
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2019-02-13 17:56:02 +0100
committerDamiano Galassi <[email protected]>2019-02-13 17:56:02 +0100
commit3f9a7051407be2562721471e2829bb2e73d391ed (patch)
tree59f51c88a97b41ee9d416495ae3a62005370332e /macosx/HBCore.m
parentd0e37ca0d75fbcef5bdf47aafe8543e262314ec5 (diff)
MacGui: remove two old unused classes, remove some old compatibility hacks, and fix warnings.
Diffstat (limited to 'macosx/HBCore.m')
-rw-r--r--macosx/HBCore.m6
1 files changed, 3 insertions, 3 deletions
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