We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5700543 commit c7858d9Copy full SHA for c7858d9
1 file changed
include/dxc/Test/HlslTestUtils.h
@@ -547,7 +547,7 @@ inline bool CompareDoubleULP(
547
548
// For FTZ or Preserve mode, we should get the expected number within
549
// ULPTolerance for any operations.
550
- int64_t diff = *((const DWORD64 *)&fsrc) - *((const DWORD64 *)&fref);
+ int64_t diff = *((const uint64_t *)&fsrc) - *((const uint64_t *)&fref);
551
552
int64_t uDiff = diff < 0 ? -diff : diff;
553
return uDiff <= (unsigned int)ULPTolerance;
0 commit comments