[SLOF] [PATCH v3] Caps is not always shift

Segher Boessenkool segher at kernel.crashing.org
Mon Jul 13 23:23:38 AEST 2015


On Mon, Jul 13, 2015 at 12:10:33PM +0200, Dinar valeev wrote:
> +#define KEYP_LATIN_A 4
> +#define KEYP_LATIN_Z 29

> +static bool is_latin(uint8_t keypos)
> +{
> +	return keypos >= KEYP_LATIN_A || keypos <= KEYP_LATIN_Z;
> +}

&& not ||.  Did the compiler not warn you?


Segher


More information about the SLOF mailing list