Skip to content

Commit bf24f8f

Browse files
committed
Fixes 64bit build
* Fixes #43
1 parent d8e6105 commit bf24f8f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/Options.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,9 @@ void Options::Load()
7878
message.FindRect("wind_rect", &wind_rect);
7979
message.FindMessage("columnsState", &columnsState);
8080
int8 tmp;
81-
if (message.FindInt8("workspace_activation", &((int8)workspace_activation)) != B_OK)
81+
if (message.FindInt8("workspace_activation", &tmp) == B_OK)
82+
workspace_activation = static_cast<workspace_type>(tmp);
83+
else
8284
workspace_activation = current_workspace;
8385
if (message.FindInt32("workspaces", &workspaces) != B_OK)
8486
workspaces = 1;

src/Options.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
struct Options {
2626
int32 refresh;
27-
enum {
27+
enum workspace_type {
2828
current_workspace,
2929
all_workspaces,
3030
saved_workspace

0 commit comments

Comments
 (0)