SCIInstitute / map3d

Other
3 stars 3 forks source link

Narrowing from double to float in initializer list #29

Closed a-y-khan closed 7 years ago

a-y-khan commented 7 years ago

Narrowing from double to float in initializer list is not allowed by clang:

GeomWindowRepaint.cc:1432:31: error: non-constant-expression cannot be narrowed from type 'double' to 'float' in initializer list [-Wc++11-narrowing] float position[3] = { -1.f, (height() - 15.0), 0.f };