]> git.sesse.net Git - cubemap/commitdiff
Fix a signed/unsigned warning.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Mon, 15 Apr 2013 08:37:18 +0000 (10:37 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Mon, 15 Apr 2013 08:37:18 +0000 (10:37 +0200)
server.cpp

index 789d8eabd14c88c67524b632b7dbe1debbe410fd..3a767a9838a6ce2decd77ed6b077519d936f7dec 100644 (file)
@@ -397,7 +397,7 @@ sending_data_again:
                        // We don't have any more data for this client, so put it to sleep.
                        // This is postcondition #3.
                        stream->put_client_to_sleep(client);
                        // We don't have any more data for this client, so put it to sleep.
                        // This is postcondition #3.
                        stream->put_client_to_sleep(client);
-               } else if (more_data && ret == bytes_to_send) {
+               } else if (more_data && size_t(ret) == bytes_to_send) {
                        goto sending_data_again;
                }
                break;
                        goto sending_data_again;
                }
                break;