try changing > length =(pnd_point - dec_point); // line 244 to length = ((int)pnd_point - (int)dec_point); // line 244 and if that doesn't work, try length = ((int)(void *)pnd_point - (int)(void *)dec_point); // line 244 regards Sergio -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist