From: Bruno H. <br...@cl...> - 2005-01-25 19:34:12
|
Sam wrote: > > For the implementation of udigits_to_I: > > Note that you cannot always interpret an array of type uint8[] as an > > array of type uintD[]: The number of elements may not be a multiple > > of sizeof(uintD)/sizeof(uint8) (what do you want to do with the last few > > bytes in that case?), > > zero them out? (hmm, this implies little-endian). > > > and the alignment of the memory may not be a multiple of > > alignof(uintD). > > crash? :-( Yes, likely. - But before talking about the implementation of an unclear function, can you clarify what the function _should_ do? What does the berkeley-db module expect from it? Bruno |