1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2025-01-19 03:57:14 +01:00

Prevent a compilation error in the algorithms header from a missing brace in ForwardElemFunc initializer list.

This commit is contained in:
Sandu Liviu Catalin 2016-09-11 20:09:35 +03:00
parent 2cd5054f92
commit 1bf80d76c6

View File

@ -835,7 +835,7 @@ public:
* Base constructor.
*/
ForwardElemFunc(Object & env, Function & func)
: mFunc(env.GetVM(), env, func.GetFunc()), mCount(0)
: mFunc(env.IsNull() ? func : Function(env.GetVM(), env, func.GetFunc())), mCount(0)
{
if (mFunc.IsNull())
{