Skip to content

Commit abb1e3c

Browse files
committed
Time::HiRes TMR_newSVnv_mortal() move SvNV_set() after SvNOK_on(), aliasing
-Originally I thought SvANY() aka SvNV_set() needs to be read/written first so CC doesn't think SvNOK_on() somehow rewrote SvANY or SvNVX() but I was wrong, SvNV_set(_nsv, _nv) was breaking up SvNOK_on() and SvTEMP_on() from combining.
1 parent 485fa08 commit abb1e3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dist/Time-HiRes/HiRes.xs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,8 @@ STMT_START { \
213213

214214
# define TMR_newSVnv_mortal(_nsv, _nv) STMT_START { \
215215
_nsv = newSV_type_mortal(SVt_NV); \
216-
SvNV_set(_nsv, _nv); \
217216
SvNOK_on(_nsv); \
217+
SvNV_set(_nsv, _nv); \
218218
} STMT_END
219219

220220
#else

0 commit comments

Comments
 (0)