Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
svibravo opened this issue Mar 19, 2018 · 0 comments
Open

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

svibravo opened this issue Mar 19, 2018 · 0 comments

Comments

@svibravo
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant