There was an error while loading. Please reload this page.
1 parent a7ae3b9 commit 10dfe1dCopy full SHA for 10dfe1d
Modules/_lsprof.c
@@ -72,7 +72,8 @@ static _PyTime_t CallExternalTimer(ProfilerObject *pObj)
72
if (pObj->externalTimerUnit > 0.0) {
73
/* interpret the result as an integer that will be scaled
74
in profiler_getstats() */
75
- result = (_PyTime_t)PyLong_AsLongLong(o);
+ (void)_PyTime_FromNanosecondsObject(&result, o);
76
+ // Error is checked below.
77
}
78
else {
79
/* interpret the result as a double measured in seconds.
0 commit comments