Avoid some warnings which showed up in 64-bit mode.

This commit is contained in:
Ian Lance Taylor
2007-12-19 01:18:41 +00:00
parent c0873094f5
commit 9bb53bf8b8
3 changed files with 24 additions and 18 deletions

View File

@@ -264,7 +264,7 @@ inline To
convert_types(const From from)
{
To to = from;
gold_assert(to == from);
gold_assert(static_cast<From>(to) == from);
return to;
}