[vbox-dev] handleConvertFromRaw() code question

Skippy VonDrake skippyvondrake at gmail.com
Tue Apr 2 12:38:45 PDT 2013


I don't understand some code in handleConvertFromRaw(int argc, char
*argv[])
(file VBoxManageDisk.cpp, version 4.1.10).

Specifically:

Assert(RT_MIN(cbFile / 512 / 16 / 63, 16383) -
           (unsigned int)RT_MIN(cbFile / 512 / 16 / 63, 16383) == 0);

cbFile is of type uint64_t, and I don't understand how this test could
*ever* fail!?

What am I missing? Sorry if this is a "learning C" question... but I hope
someone will enlighten me as to how that assert could ever fail.

Thanks,

skippy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.virtualbox.org/pipermail/vbox-dev/attachments/20130402/c540707d/attachment.html 


More information about the vbox-dev mailing list