fix bug with optional that resulted in 8x more memory than necessary being reserved
This commit is contained in:
parent
8d13f292b8
commit
935e90c1ec
1 changed files with 1 additions and 1 deletions
|
|
@ -236,7 +236,7 @@ namespace fc {
|
|||
const T* ptr()const { const void* v = &_value[0]; return static_cast<const T*>(v); }
|
||||
|
||||
// force alignment... to 8 byte boundaries
|
||||
double _value[8 * ((sizeof(T)+7)/8)];
|
||||
double _value[((sizeof(T)+7)/8)];
|
||||
bool _valid;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue