Commit 287bd1cb authored by Ryan Pavlik's avatar Ryan Pavlik Committed by Jakob Bornecrantz
Browse files

d/ohmd: Cast bitmask enum

parent 839d0861
...@@ -338,8 +338,8 @@ oh_device_create(ohmd_context *ctx, ...@@ -338,8 +338,8 @@ oh_device_create(ohmd_context *ctx,
bool print_spew, bool print_spew,
bool print_debug) bool print_debug)
{ {
enum u_device_alloc_flags flags = enum u_device_alloc_flags flags = (enum u_device_alloc_flags)(
U_DEVICE_ALLOC_HMD | U_DEVICE_ALLOC_TRACKING_NONE; U_DEVICE_ALLOC_HMD | U_DEVICE_ALLOC_TRACKING_NONE);
struct oh_device *ohd = struct oh_device *ohd =
U_DEVICE_ALLOCATE(struct oh_device, flags, 1, 0); U_DEVICE_ALLOCATE(struct oh_device, flags, 1, 0);
ohd->base.update_inputs = oh_device_update_inputs; ohd->base.update_inputs = oh_device_update_inputs;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment