Fix several compiler warnings and build issues detected with Fedora 24 builds.
[terminatorX.git] / src / tX_audiodevice.cc
index f80e4647cbcdbd0440be1875023c116e22487727..b21580a7ac370e84eeace26ad034883da6898d88 100644 (file)
@@ -367,11 +367,11 @@ int tX_audiodevice_pulse :: open()
 
        
        pa_buffer_attr attr = {
-               .maxlength = -1,
+               .maxlength = (uint32_t) -1,
                .tlength = 2048,
                .prebuf = 1,
-               .minreq = -1,
-               .fragsize = -1
+               .minreq = (uint32_t) -1,
+               .fragsize = (uint32_t) -1
        };
 
        attr.minreq = attr.tlength / 4;