dascandy / hippomocks

GNU Lesser General Public License v2.1
196 stars 67 forks source link

master Version crashes on Windows and VisualStudio 2010 #65

Closed mrAtari closed 7 years ago

mrAtari commented 7 years ago

Tracked down, its the unitialized union in virtual_index function:

#elif defined(_MSC_VER) 
union {
        T t;
        struct
        {
            unsigned char *value;
            unsigned long baseoffs;
        } u;
    } conv;

should be conv = {};

dascandy commented 7 years ago

Should be fixed now. Also, less warnings on MSVC2015 now.