mirror of
https://github.com/bkaradzic/bx.git
synced 2026-02-17 20:52:37 +01:00
Fixed signed integer overflow.
This commit is contained in:
@@ -104,7 +104,7 @@ namespace bx
|
||||
void add(timespec& _ts, int32_t _msecs)
|
||||
{
|
||||
uint64_t ns = toNs(_ts);
|
||||
toTimespecNs(_ts, ns + _msecs*1000000);
|
||||
toTimespecNs(_ts, ns + uint64_t(_msecs)*1000000);
|
||||
}
|
||||
|
||||
Semaphore::Semaphore()
|
||||
|
||||
Reference in New Issue
Block a user