tech-userlevel archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: RT-11 filesystem support for makefs
On Thu, Apr 25, 2013 at 11:43:42PM +0400, Sergey Svishchev wrote:
> + for (m = 0; *cp; m++) {
> + temp = Ain1 * table[(int)*cp++];
> + if (*cp!=0) {
> + temp += Ain2 * table[(int)*cp++];
> + if(*cp!=0)
> + temp += table[(int)*cp++];
> + }
> + out[m] = htole16(temp);
> + }
Surely those (int) should be (unsigned char)?
--
David A. Holland
dholland%netbsd.org@localhost
Home |
Main Index |
Thread Index |
Old Index