fix buggy C-style comparison of integer value

in Lua land, "if 0 then X end" does execute X.
Merge pull request #65 from hwhw/fix-blitbuffer

fix buggy C-style comparison of integer value