fix some integer conversions in the Table class #60

Merged
cremno merged 2 commits from mri-table-fix-conversions into master 2014-08-31 09:20:09 +00:00

2 Commits

Author SHA1 Message Date
cremno 53cd5e1fbc use std::max instead of ?: 2014-08-31 11:10:57 +02:00
cremno acf826eb7a fix some integer conversions in the Table class
Sizes (x, y, z) are clamped to a non-negative int value.
Use NUM2INT instead of FIX2INT as the argument might not be a Fixnum.
2014-08-31 04:46:51 +02:00