I'm trying to implement bitboards in Swift and am trying to store a 64bit integer into a UInt64 and get an overflow error.
var white_queen_bb:uint64 = 0001000000000000000000000000000000000000000000000000000000000000 as UInt64;
Integer Literal '100000000000000000000000000000000000000000000000000000000000' overflows when stored into 'UInt64'
I'm guessing what happens is that Swift treats the number as a decimal integer and then tries convert it to a binary number which ends up being bigger than 64bits.
Can someone please explain how I would do this. Thank you