markwal / GPX

Gcode to x3g conversion post processor
GNU General Public License v2.0
98 stars 80 forks source link

Fix getopt usage #7

Closed hyperair closed 8 years ago

hyperair commented 8 years ago

getopt() returns an int, not a char. Assigning the return value of getopt() into a char causes gcc to hang while compiling gpx on some architectures.

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=818737

hyperair commented 8 years ago

Hmm, something's up with this and getopt is returning garbage values. I'll need to investigate further..

hyperair commented 8 years ago

Oh, it's the GETOPTS_END value that's gone weird.