Hi,
i have a compiling error i do not understand. Can somebody explain it to me?
set_bit is a large number.
Compiling this code gives me this error in line 6
Error: Unaligned memory accesses not supported
1 long long set = (long long)(1) << (set_bit % 64) ;
2 unsigned int ll = int(set_bit >> 6 );
3
4 if (!(sb[ll] & set )) {
5 set_child = true;
6 sb[ll] |= set ;
7 }
Compiling this works:
1 long long set = (long long)(1) << (set_bit % 64) ;
2 unsigned int ll = int(set_bit >> 6 );
3
4 if (!(sb[ll] & set )) {
5 set_child = true;
6 }
7 sb[ll] |= set ;
please help me,
Damian