mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-27 16:39:29 -05:00
Print warning also when serializing negative rstime_t
This commit is contained in:
parent
03cdd6c7b6
commit
2bb24075c4
@ -303,5 +303,9 @@ bool getRawTimeT(const void *data,uint32_t size,uint32_t *offset,rstime_t& t)
|
||||
}
|
||||
bool setRawTimeT(void *data, uint32_t size, uint32_t *offset, const rstime_t& t)
|
||||
{
|
||||
if(t < 0) // [[unlikely]]
|
||||
std::cerr << __PRETTY_FUNCTION__ << " got a negative time: " << t
|
||||
<< " this seems fishy, report to the developers!" << std::endl;
|
||||
|
||||
return setRawUInt64(data,size,offset,t) ;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user