From: Bulat Ziganshin Date: 2002-10-21T16:26:48+09:00 Subject: Re: Porting a CRC function to ruby Hello Matthew, Wednesday, October 16, 2002, 3:41:55 AM, you wrote: the problem is that this code: MM> register word newCrc; MM> return(~newCrc); cannot be translated as: MM> return ~aCrc instead, use "return 65535-aCrc" of course, types which don't have any particular word size, must not implement "invert ALL bits" operation :) -- Best regards, Bulat mailto:bulatz@integ.ru