Fix "integer constant is too large for 'long' type" error
authorDmitry Marakasov <amdmi3@amdmi3.ru>
Mon, 1 Aug 2011 22:49:15 +0000 (02:49 +0400)
committerDmitry Marakasov <amdmi3@amdmi3.ru>
Mon, 1 Aug 2011 22:49:15 +0000 (02:49 +0400)
src/mapgen.cpp

index 5dec7d843b4dc031c9c1048129f5f23058f79c86..9effa8ac66203eed0b98bc1008bb4efb816080dc 100644 (file)
@@ -1552,7 +1552,7 @@ void make_block(BlockMakeData *data)
        /*
                Create a block-specific seed
        */
-       u32 blockseed = (u32)(data->seed%0x100000000) + full_node_min.Z*38134234
+       u32 blockseed = (u32)(data->seed%0x100000000ULL) + full_node_min.Z*38134234
                        + full_node_min.Y*42123 + full_node_min.X*23;
        
        /*