[Box Backup-dev] ASSERT

Ben Summers boxbackup-dev at fluffy.co.uk
Thu Dec 15 10:32:43 GMT 2005


On 15 Dec 2005, at 01:05, Martin Ebourne wrote:

> This assert is false on x86_64:
>
> box_time_t GetCurrentBoxTime()
> {
> 	ASSERT(sizeof(uint32_t) == sizeof(time_t));
> 	return SecondsToBoxTime((uint32_t)time(0));
> }
>
> Are there any gotchas it is protecting? Just removing it looks  
> plausible
> to me.

You could remove it, but it is protecting against turning a 64 bit  
time into a 32 bit one. It won't be a problem for a few more decades...

Ben






More information about the Boxbackup-dev mailing list