Bug 20721 - A cast of double to int can possibly result in int.MinValue
Summary: A cast of double to int can possibly result in int.MinValue
Status: NEW
Alias: None
Product: Runtime
Classification: Mono
Component: JIT (show other bugs)
Version: unspecified
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2014-06-19 13:21 UTC by John Miller [MSFT]
Modified: 2014-06-19 16:03 UTC (History)
4 users (show)

See Also:
Tags:
Is this bug a regression?: ---
Last known good build:


Attachments

Description John Miller [MSFT] 2014-06-19 13:21:12 UTC
## Overview: 

    Sometimes truncating a perfectly normal positive double value (for example 18.1000359277301) with (int) results in int.MinValue (-2147483648).

## Additional Information: 

    No test case available.
Comment 3 John Miller [MSFT] 2014-06-19 16:03:36 UTC
## Additional Note

    Only reports from Xamarin.Android. No reports of this happening on iOS or on Mono desktop.

Note You need to log in before you can comment on or make changes to this bug.