Error

I am having some problems with my Arduino code, I get this error. Does anybody know what might be the problem? I have attached the code to this message.

/Users/martynasvalys/Desktop/Arduino 2/Theremin/Theremin_2/Theremin_2.ino:12:4: warning: narrowing conversion of '-22' from 'int' to 'byte {aka unsigned char}' inside { } [-Wnarrowing]
-22};

Theremin_2.ino (1.11 KB)

The value -22 cannot be properly represented in an unsigned data-type, like "byte".

(BTW, you'll notice that, despite your thread title, the word "error" does not appear in the message the compiler sent to you)

Did you translate this code from Java?