Skip to content

Commit 0e5bc5e

Browse files
committed
Fix bug in MEX interface
1 parent 499260c commit 0e5bc5e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎mex/cpfloat.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,8 @@ void mexFunction(int nlhs,
170170
} else {
171171
if (is_inf_no_default)
172172
fpopts->infinity = CPFLOAT_INF_NO; /* Default for E4M5. */
173+
else
174+
fpopts->infinity = CPFLOAT_INF_USE;
173175
}
174176

175177
tmp = mxGetField(prhs[1], 0, "round");

0 commit comments

Comments
 (0)