Quantcast
Channel: YouTrackReSharper (RSRP) - Bug and Issue Tracker
Viewing all articles
Browse latest Browse all 106942

RSRP-288075: CA for comparison of floating point errors produces weird code if one value is a zero literal

$
0
0
Reporter Drew Noakes (drewnoakes) Drew Noakes (drewnoakes)
Created Jan 30, 2012 5:36:01 PM
Updated Jan 30, 2012 5:36:01 PM
Priority Normal
Type Bug
Fix versions No Fix versions
State Submitted
Assignee Unassigned
Subsystem Code Analysis
Affected versions 6.1
Fixed in build No Fixed in build
Before:
d == 0


After:
Math.Abs(d - 0) < EPSILON


Should be:
Math.Abs(d) < EPSILON

Viewing all articles
Browse latest Browse all 106942

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>