From 935e90c1ec671e9b76db12c9a1e63f5a789bcc89 Mon Sep 17 00:00:00 2001 From: Daniel Larimer Date: Thu, 9 Jul 2015 13:39:20 -0400 Subject: [PATCH] fix bug with optional that resulted in 8x more memory than necessary being reserved --- include/fc/optional.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fc/optional.hpp b/include/fc/optional.hpp index 9c811a2..dfb725d 100644 --- a/include/fc/optional.hpp +++ b/include/fc/optional.hpp @@ -236,7 +236,7 @@ namespace fc { const T* ptr()const { const void* v = &_value[0]; return static_cast(v); } // force alignment... to 8 byte boundaries - double _value[8 * ((sizeof(T)+7)/8)]; + double _value[((sizeof(T)+7)/8)]; bool _valid; };