+++ /dev/null
-Description: proper parentheses around bitwise operations
- the original "(!soundSystem & (SYS_API_ANY))" is
- a) wrong
- b) FTBFS on g++5
-Author: IOhannes m zmölnig
-Forwarded: https://github.com/monocasual/giada/pull/50
-Last-Update: 2015-07-07
----
-This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
-Index: giada/src/conf.cpp
-===================================================================
---- giada.orig/src/conf.cpp
-+++ giada/src/conf.cpp
-@@ -191,7 +191,7 @@ int Conf::read()
- logMode = atoi(getValue("logMode").c_str());
-
- soundSystem = atoi(getValue("soundSystem").c_str());
-- if (!soundSystem & (SYS_API_ANY)) soundSystem = DEFAULT_SOUNDSYS;
-+ if (!(soundSystem & SYS_API_ANY)) soundSystem = DEFAULT_SOUNDSYS;
-
- soundDeviceOut = atoi(getValue("soundDeviceOut").c_str());
- if (soundDeviceOut < 0) soundDeviceOut = DEFAULT_SOUNDDEV_OUT;