diff options
Diffstat (limited to 'rts/RtsAPI.c')
-rw-r--r-- | rts/RtsAPI.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rts/RtsAPI.c b/rts/RtsAPI.c index 5cbea01496..74e6924ae3 100644 --- a/rts/RtsAPI.c +++ b/rts/RtsAPI.c @@ -768,7 +768,7 @@ void rts_resume (PauseToken *pauseToken) // releaseAllCapabilities will not block because the current task owns all // capabilities. - releaseAllCapabilities(n_capabilities, NULL, task); + releaseAllCapabilities(getNumCapabilities(), NULL, task); exitMyTask(); stgFree(pauseToken); } @@ -806,7 +806,7 @@ static void assert_isPausedOnMyTask(const char *functionName) } // Check that we own all capabilities. - for (unsigned int i = 0; i < n_capabilities; i++) + for (unsigned int i = 0; i < getNumCapabilities(); i++) { Capability *cap = capabilities[i]; if (cap->running_task != task) |