mirror of
https://github.com/ChaiScript/ChaiScript.git
synced 2025-12-06 16:57:04 +08:00
fix -Wcovered-switch-default warnings
This commit is contained in:
parent
c26fd14953
commit
684522a8b7
@ -288,10 +288,8 @@ namespace chaiscript
|
|||||||
return callable(*static_cast<const float *>(bv.get_const_ptr()));
|
return callable(*static_cast<const float *>(bv.get_const_ptr()));
|
||||||
case Common_Types::t_long_double:
|
case Common_Types::t_long_double:
|
||||||
return callable(*static_cast<const long double *>(bv.get_const_ptr()));
|
return callable(*static_cast<const long double *>(bv.get_const_ptr()));
|
||||||
default:
|
|
||||||
throw chaiscript::detail::exception::bad_any_cast();
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
throw chaiscript::detail::exception::bad_any_cast();
|
||||||
}
|
}
|
||||||
|
|
||||||
inline static Boxed_Value oper(Operators::Opers t_oper, const Boxed_Value &t_lhs)
|
inline static Boxed_Value oper(Operators::Opers t_oper, const Boxed_Value &t_lhs)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user