fix gpu warnings with signed/unsigned char
Merge pull request #1017 from jet47:fix-gpu-warnings