From: Dmitry Marakasov Date: Mon, 1 Aug 2011 22:49:15 +0000 (+0400) Subject: Fix "integer constant is too large for 'long' type" error X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=de868d24c170dc8f92ea1280bac80f0ab528d3e0;p=zefram%2Fminetest%2Fminetest_engine.git Fix "integer constant is too large for 'long' type" error --- diff --git a/src/mapgen.cpp b/src/mapgen.cpp index 5dec7d84..9effa8ac 100644 --- a/src/mapgen.cpp +++ b/src/mapgen.cpp @@ -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; /*