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,
bool print_spew,
bool print_debug)
{
enum u_device_alloc_flags flags =
U_DEVICE_ALLOC_HMD | U_DEVICE_ALLOC_TRACKING_NONE;
enum u_device_alloc_flags flags = (enum u_device_alloc_flags)(
U_DEVICE_ALLOC_HMD | U_DEVICE_ALLOC_TRACKING_NONE);
struct oh_device *ohd =
U_DEVICE_ALLOCATE(struct oh_device, flags, 1, 0);
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