Skip to content

Commit de868d2

Browse files
committed
Fix "integer constant is too large for 'long' type" error
1 parent 318a730 commit de868d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mapgen.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1552,7 +1552,7 @@ void make_block(BlockMakeData *data)
15521552
/*
15531553
Create a block-specific seed
15541554
*/
1555-
u32 blockseed = (u32)(data->seed%0x100000000) + full_node_min.Z*38134234
1555+
u32 blockseed = (u32)(data->seed%0x100000000ULL) + full_node_min.Z*38134234
15561556
+ full_node_min.Y*42123 + full_node_min.X*23;
15571557

15581558
/*

0 commit comments

Comments
 (0)