anoved / Shapetcl

Simple shapefile access for Tcl.
MIT License
3 stars 0 forks source link

Review numeric field width validation w/regard to negative values #61

Closed anoved closed 11 years ago

anoved commented 11 years ago

Since the minus sign occupies one character

anoved commented 11 years ago

-2147483647 is a valid signed 32-bit int, but is 11 characters long (with minus sign). So, we either keep the 10-character int limit and lose a viable decimal place from negative values, or we increase the limit to 11 and let Tcl handle 32-bit-exceeded errors.