Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RectF の一部のコンストラクタで int32 を受け取るときの縮小変換のエラーを消す #1184

Closed
Reputeless opened this issue Jan 15, 2024 · 0 comments
Labels

Comments

@Reputeless
Copy link
Member

# include <Siv3D.hpp> // v0.6.13

constexpr RectF Test1(const Vec2& center, int32 w, int32 h)
{
	return RectF{ Arg::center = center, w, h }; // 's3d::int32' から 's3d::RectF::value_type' への縮小変換
}

constexpr RectF Test2(const Vec2& center, double w, double h)
{
	return RectF{ Arg::center = center, w, h }; // OK
}

void Main()
{
	while (System::Update())
	{

	}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant