flightonary / Moscapsule

MQTT Client for iOS written in Swift
MIT License
273 stars 69 forks source link

XCode check: integer overflow while running for iOS 9.3 (iPad2) #70

Open svibravo opened 6 years ago

svibravo commented 6 years ago

File: mosquitto.c Row: 73

Message: Signed integer overflow: 1521456818 * 1000 cannot be represented in type 'long'

Code: srand((unsigned int)(tv.tv_sec*1000 + tv.tv_usec/1000));

Xcode pause execution on every start if running on iPad2 device or simulator (iOS 9.3). No warnings if running on 64bit device or simulator.