Fix "warning: comparison between signed and unsigned integer expressions"
authorPerttu Ahola <celeron55@gmail.com>
Fri, 25 Nov 2011 17:45:04 +0000 (19:45 +0200)
committerPerttu Ahola <celeron55@gmail.com>
Tue, 29 Nov 2011 17:13:52 +0000 (19:13 +0200)
src/server.cpp

index 83412abfb56e6d1136c3d3c172cc934234c18c23..12026054e70d67ab18b1640109eb6cbeee1e14b5 100644 (file)
@@ -688,7 +688,7 @@ void RemoteClient::GetNextBlocks(Server *server, float dtime,
                                //if(server->m_emerge_queue.peerItemCount(peer_id) < 1)
                                // Allow two blocks in queue per client
                                //if(server->m_emerge_queue.peerItemCount(peer_id) < 2)
-                               s32 max_emerge = 25;
+                               u32 max_emerge = 25;
                                // Make it more responsive when needing to generate stuff
                                if(surely_not_found_on_disk)
                                        max_emerge = 5;