Menu

#11 Signed/Unsigned Comparison Warning and Fix

open
nobody
None
5
2006-06-21
2006-06-21
Anonymous
No

This was a simple fix. There is a compiler warning:

opponent.c: In function 'accept_new_opponent':
opponent.c:110: warning: pointer targets in passing
argument 3 of 'accept' differ in signedness

Line 106 of opponent.c should read:

unsigned int len;

The original is just int, which is signed. Seems that
accept() expects an unsigned int, hence the warning.
Besides why would a length of anything be signed, I
never heard of negative length. :)

Developers, if you need info, e-mail: foxntd `at` yahoo.com

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.