Skip to content

Commit

Permalink
Fixes 64bit build
Browse files Browse the repository at this point in the history
* Fixes #43
  • Loading branch information
janus2 committed Mar 28, 2018
1 parent d8e6105 commit bf24f8f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/Options.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@ void Options::Load()
message.FindRect("wind_rect", &wind_rect);
message.FindMessage("columnsState", &columnsState);
int8 tmp;
if (message.FindInt8("workspace_activation", &((int8)workspace_activation)) != B_OK)
if (message.FindInt8("workspace_activation", &tmp) == B_OK)
workspace_activation = static_cast<workspace_type>(tmp);
else
workspace_activation = current_workspace;
if (message.FindInt32("workspaces", &workspaces) != B_OK)
workspaces = 1;
Expand Down
2 changes: 1 addition & 1 deletion src/Options.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

struct Options {
int32 refresh;
enum {
enum workspace_type {
current_workspace,
all_workspaces,
saved_workspace
Expand Down

0 comments on commit bf24f8f

Please sign in to comment.