[ RFC Index | RFC Search | Usenet FAQs | Web FAQs | Documents | Cities ]

    Search the Archives
Display RFC by number
    


RFC 2440: The C code in section 6.1 relies upon the default integral...

<< Back to: RFC 2440

 
Reader comments:
 

Comment by Brian Hetrick
Submitted on 2/16/2005
Related RFC: RFC 2440
Rating: Not yet rated Rate this comment: Vote
The C code in section 6.1 relies upon the default integral type (int) being at least 24 bits wide.  To be maximally compliant to the ANSI C specification, which permits int to be only 16 bits wide, the line:     crc ^= (*octets++) << 16;should be modified to     crc ^= (crc24)(*octets++) << 16;

 
 
FAQS.ORG makes no guarantees as to the accuracy of the posts. Each post is the personal opinion of the poster. These posts are not intended to substitute for medical, tax, legal, investment, accounting, or other professional advice. FAQS.ORG does not endorse any opinion or any product or service mentioned mentioned in these posts.

<< Back to: RFC 2440


© 2008 FAQS.ORG. All rights reserved.