0x7CFE / llst

LLVM powered Little Smalltalk.
Other
93 stars 10 forks source link

Fix code which may break strict aliasing rules #34

Closed 0x7CFE closed 10 years ago

0x7CFE commented 10 years ago

FreeBSD complains that cast in TArray::operator[] may break aliasing rules due to access through badly aliased pointers. Linux port of GCC on the other hand do not complain. However we need to eliminate this potential problems.

0x7CFE commented 10 years ago

TODO: TArray<T>::operator[] should use static_cast