Menu

#3 Data type mismatch in code table

open
nobody
None
5
2012-12-15
2012-12-15
powderrider
No

There is a type mismatch in the "code table" stored in the compressed file: Write and read functions do not use the same data type to store/read the following entries: (in this order)
- Number of entries (1. write/read)
- Number of data bytes this encoding represents (2. write/read)

write_code_table() and write_code_table_to_memory()
- 1. write with sizeof(unsigned long) (8 byte)
- 2. write with sizeof(unsigned int) (4 byte)

read_code_table() and read_code_table_from_memory()
- 1. read with sizeof(unsigned int) (4 byte)
- 2. read with sizeof(unsigned int) (4 byte)

Discussion


Log in to post a comment.

MongoDB Logo MongoDB