When I go to compile the code (swrip200) i got from swrip.net i get this odd error and i can't seem to figure out how to fix it.
OS : GNU bash, version 3.2.33(1)-release (x86_64-pc-linux-gnu)
Errors I'm Receiving:
handler.c: In function 'OBJ_DATA* group_object(OBJ_DATA*, OBJ_DATA*)':
handler.c:3553: error: cast from 'char*' to 'int' loses precision
handler.c:3553: error: cast from 'char*' to 'int' loses precision
handler.c:3554: error: cast from 'char*' to 'int' loses precision
handler.c:3554: error: cast from 'char*' to 'int' loses precision
handler.c:3555: error: cast from 'char*' to 'int' loses precision
handler.c:3555: error: cast from 'char*' to 'int' loses precision
handler.c:3556: error: cast from 'char*' to 'int' loses precision
handler.c:3556: error: cast from 'char*' to 'int' loses precision
Offending Lines of Code:
line:3553: && QUICKMATCH( obj1->name, obj2->name )
line:3554: && QUICKMATCH( obj1->short_descr, obj2->short_descr )
line:3555: && QUICKMATCH( obj1->description, obj2->description )
line:3556: && QUICKMATCH( obj1->action_desc, obj2->action_desc )
I'm just a bit confused and can't figure out what to do. did a make -k and got to see all the other files that have similar erros.....i see this in several of the files "cast from 'char*' to 'int' loses precision"
OS : GNU bash, version 3.2.33(1)-release (x86_64-pc-linux-gnu)
Errors I'm Receiving:
handler.c: In function 'OBJ_DATA* group_object(OBJ_DATA*, OBJ_DATA*)':
handler.c:3553: error: cast from 'char*' to 'int' loses precision
handler.c:3553: error: cast from 'char*' to 'int' loses precision
handler.c:3554: error: cast from 'char*' to 'int' loses precision
handler.c:3554: error: cast from 'char*' to 'int' loses precision
handler.c:3555: error: cast from 'char*' to 'int' loses precision
handler.c:3555: error: cast from 'char*' to 'int' loses precision
handler.c:3556: error: cast from 'char*' to 'int' loses precision
handler.c:3556: error: cast from 'char*' to 'int' loses precision
Offending Lines of Code:
line:3553: && QUICKMATCH( obj1->name, obj2->name )
line:3554: && QUICKMATCH( obj1->short_descr, obj2->short_descr )
line:3555: && QUICKMATCH( obj1->description, obj2->description )
line:3556: && QUICKMATCH( obj1->action_desc, obj2->action_desc )
I'm just a bit confused and can't figure out what to do. did a make -k and got to see all the other files that have similar erros.....i see this in several of the files "cast from 'char*' to 'int' loses precision"