libsigrok.h: Fix multiple compiler warnings (-Wshift-overflow=2).
../include/libsigrok/libsigrok.h:653:19: warning: result of ‘1 << 31’ requires 33 bits to represent, but ‘int’ only has 32 bits [-Wshift-overflow=] SR_CONF_GET = (1 << 31), ^~ [...]
This commit is contained in:
parent
0519db864b
commit
3601d50e26
|
@ -650,11 +650,11 @@ struct sr_key_info {
|
|||
/** Configuration capabilities. */
|
||||
enum sr_configcap {
|
||||
/** Value can be read. */
|
||||
SR_CONF_GET = (1 << 31),
|
||||
SR_CONF_GET = (1UL << 31),
|
||||
/** Value can be written. */
|
||||
SR_CONF_SET = (1 << 30),
|
||||
SR_CONF_SET = (1UL << 30),
|
||||
/** Possible values can be enumerated. */
|
||||
SR_CONF_LIST = (1 << 29),
|
||||
SR_CONF_LIST = (1UL << 29),
|
||||
};
|
||||
|
||||
/** Configuration keys */
|
||||
|
|
Loading…
Reference in New Issue