Skip to content

Commit 59f1428

Browse files
Update _funcs.py
Co-authored-by: jakirkham <[email protected]>
1 parent b1d5edc commit 59f1428

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/array_api_extra/_funcs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,5 +429,5 @@ def sinc(x: Array, /, *, xp: ModuleType) -> Array:
429429
err_msg = "`x` must have a real floating data type."
430430
raise ValueError(err_msg)
431431
# no scalars in `where` - array-api#807
432-
y = xp.pi * xp.where(x, x, xp.asarray(xp.finfo(x.dtype).smallest_normal))
432+
y = xp.pi * xp.where(x, x, xp.asarray(xp.finfo(x.dtype).smallest_normal, dtype=x.dtype))
433433
return xp.sin(y) / y

0 commit comments

Comments
 (0)