You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Variable c has been declared as a char and it is compared with -1. In x86 this works fine as char is signed. However, in architectures such as ARM and PowerPC char is unsigned by default and hence it causes an infinite loop.
See : http://www.network-theory.co.uk/docs/gccintro/gccintro_71.html
A simple fix would be to either include -fsigned-char to the compilation flags in makefile or explicitly declaring c as signed char, for instance
When parsing the arguments under each subprogram getopt_long function has been used as follows.
Variable c has been declared as a char and it is compared with -1. In x86 this works fine as char is signed. However, in architectures such as ARM and PowerPC char is unsigned by default and hence it causes an infinite loop.
See : http://www.network-theory.co.uk/docs/gccintro/gccintro_71.html
A simple fix would be to either include -fsigned-char to the compilation flags in makefile or explicitly declaring c as signed char, for instance
The text was updated successfully, but these errors were encountered: