Class FString: typecast

This commit is contained in:
Markus Gans 2015-07-06 23:30:23 +02:00
parent 412462d2a9
commit ab324bb164
1 changed files with 2 additions and 2 deletions

View File

@ -943,7 +943,7 @@ sInt16 FString::toShort() const
uInt16 FString::toUShort() const
{
register uLong num;
num = this->toLong();
num = uLong(this->toLong());
if ( num > USHRT_MAX )
throw std::overflow_error ("overflow");
@ -967,7 +967,7 @@ int FString::toInt() const
uInt FString::toUInt() const
{
register uLong num;
num = this->toLong();
num = uLong(this->toLong());
if ( num > UINT_MAX )
throw std::overflow_error ("overflow");