Fix bug with enum too small

The enum should be within 127, -128 with 8 bits
Merge pull request #19 from TheMatthew/patch-2

Fix bug with enum too small