Absender: Timo Sandmann
Datum: Di, 07.08.2007 17:22:02
In-reply-to:
<46B88B7F.60603@xxxxxx>
References:
<46B88B7F.60603@xxxxxx>
Hallo,na ja, das kommt drauf an, ob size_t als unsigned int oder als long unsigned int deklariert ist, je nach Plattform ist das unterschiedlich. Am besten wäre, die Sendbuffer-Größe nach uint zu casten. Aber Danke für den Hinweis!
Gruß Timo Am 07.08.2007 um 17:10 schrieb Achim Pankalla:
hallo,anbei nur ein vorschlag eine compiler-warnung in pc/tcp.c los zu werden.Mit freundlichen Grüßen achim pankalla Index: E:/eclipse/ct-bot develop/ct-Bot/pc/tcp.c =================================================================== --- E:/eclipse/ct-bot develop/ct-Bot/pc/tcp.c (revision 1212) +++ E:/eclipse/ct-bot develop/ct-Bot/pc/tcp.c (working copy) @@ -184,7 +184,7 @@ uint8 * ptr = data; if ((sendBufferPtr + length) > sizeof(sendBuffer)){- printf("%s() %s:%u: sendBuffer filled with %u/%lu Bytes, another %u bytes pending. Full! Aborting copy!\n",__FUNCTION__,__FILE__, __LINE__,sendBufferPtr,sizeof(sendBuffer),length); + printf("%s() %s:%u: sendBuffer filled with %u/%u Bytes, another % u bytes pending. Full! Aborting copy!\n",__FUNCTION__,__FILE__, __LINE__,sendBufferPtr,sizeof(sendBuffer),length);printf(" ==> Trying to recover by calling flushSendBuffer()\n"); flushSendBuffer(); Index: E:/eclipse/ct-bot develop/ct-Bot/Changelog.txt =================================================================== --- E:/eclipse/ct-bot develop/ct-Bot/Changelog.txt (revision 1212) +++ E:/eclipse/ct-bot develop/ct-Bot/Changelog.txt (working copy) @@ -1,5 +1,7 @@ CHANGELOG fuer c't-Bot ======================+2007-08-07 Achim Pankalla [achim.pankalla@xxxxxx]: Anpassung des Ausgabetyps. (Compiler warning)+2007-08-01 Benjamin Benz [bbe@xxxxxxxx]: Map aktualisiert die Grundfläche des Bots nun Sectionweise (==> #129), weitere Performanceprobleme behoben2007-08-07 Timo Sandmann [mail@xxxxxxxxxxxxxxx]: schwerwiegenden Bug in Speedcontrol behoben_______________________________________________ ct-bot-entwickler Mailingliste ct-bot-entwickler@xxxxxxxxxxxxxxxxx http://www.heise.de/bin/newsletter/listinfo/ct-bot-entwickler