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:
Uwe Hermann 2018-05-16 23:20:40 +02:00
parent 0519db864b
commit 3601d50e26
1 changed files with 3 additions and 3 deletions

View File

@ -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 */