Fix #19 Type Casts in Triangle

- fix premature type cast to int
- reported and fixed by Andrea Charao in April 2009 -> thanks!
- see http://sourceforge.net/p/pngwriter/discussion/238247/thread/6e7f2697/
Merge pull request #21 from ax3l/fix-triangle

Fix #19 Type Casts in Triangle