Bug 5672 - net_ip.c:NET_Sleep(), incorrect type usage
Status: RESOLVED FIXED
Alias: None
Product: ioquake3
Classification: Unclassified
Component: Misc
Version: GIT MASTER
Hardware: PC All
: P3 normal
Assignee: Zachary J. Slater
QA Contact: ioquake3 bugzilla mailing list
URL:
Depends on:
Blocks:
 
Reported: 2012-06-19 03:50 EDT by Özkan Sezer
Modified: 2012-06-19 12:13:10 EDT
1 user (show)

See Also:


Attachments
NET_Sleep() socket tyep fixes (1022 bytes, patch)
2012-06-19 03:50 EDT, Özkan Sezer

Description Özkan Sezer 2012-06-19 03:50:23 EDT
Created attachment 3229 [details]
NET_Sleep() socket tyep fixes

NET_Sleep() uses int type instead of SOCKET for highestfd and does incorrect casts for comparisons.  While this would work on win32, it wouldn't do so on win64 because SOCKET type is actually pointer sized. Trivial fix is attached.
Comment 1 Zack Middleton 2012-06-19 12:13:10 EDT
Applied in r2286, thanks.