24 Oct
2013
24 Oct
'13
3:28 p.m.
Hi, Oleksandr! On Oct 24, Oleksandr Byelkin wrote:
Or, I suppose, you can try to drop the cast completely:
memcpy(&pos, pos + blob_size_length, sizeof(pos));
Hehe, it was my first fix (remove casting). but then I thought that the casting was done for something and decided do not touch it. If you think that this way is better I'll do it.
Yes, please do. And not only in this place, but in all similar cases too. Thanks! Regards, Sergei