]> granicus.if.org Git - python/commitdiff
#1533486: fix types in refcount intro.
authorGeorg Brandl <georg@python.org>
Sat, 8 Mar 2008 10:05:24 +0000 (10:05 +0000)
committerGeorg Brandl <georg@python.org>
Sat, 8 Mar 2008 10:05:24 +0000 (10:05 +0000)
Doc/c-api/intro.rst

index 5e9f5254553c0bbd2e672bd14a69b1decac4809b..9befaf7a739526ebce18e2e962453b1a1e7a25fd 100644 (file)
@@ -137,7 +137,7 @@ reference counts for other objects contained in the object if this is a compound
 object type, such as a list, as well as performing any additional finalization
 that's needed.  There's no chance that the reference count can overflow; at
 least as many bits are used to hold the reference count as there are distinct
-memory locations in virtual memory (assuming ``sizeof(long) >= sizeof(char*)``).
+memory locations in virtual memory (assuming ``sizeof(Py_ssize_t) >= sizeof(void*)``).
 Thus, the reference count increment is a simple operation.
 
 It is not necessary to increment an object's reference count for every  local