Skip to content

Commit 8ee0d30

Browse files
authored
[LIBCLC][NVPTX] Fix typo causing incorrect int outputs for frexp (#4788)
1 parent 52e1517 commit 8ee0d30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libclc/ptx-nvidiacl/libspirv/math/frexp.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ __spirv_ocl_frexp(__CLC_GENTYPE_VEC x, __CLC_ADDRESS_SPACE int3 *ep) {
4747
int##HALF_VEC_LEN ep_lo; \
4848
int##HALF_VEC_LEN ep_hi; \
4949
GENTYPE res = (GENTYPE)(__spirv_ocl_frexp(x.lo, &ep_lo), \
50-
__spirv_ocl_frexp(x.hi, &ep_lo)); \
50+
__spirv_ocl_frexp(x.hi, &ep_hi)); \
5151
*ep = (int##VEC_LEN)(ep_lo, ep_hi); \
5252
return res; \
5353
}

0 commit comments

Comments
 (0)