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

Dinar Valeev k0da at opensuse.org
Tue Jul 14 00:19:31 AEST 2015


On Mon, Jul 13, 2015 at 3:23 PM, Segher Boessenkool
<segher at kernel.crashing.org> wrote:
> 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?
Ah, you're right.

No it didn't. Compiled and tested, but tested only _ key
>
>
> Segher


More information about the SLOF mailing list