summaryrefslogtreecommitdiff
path: root/gcc/doc
diff options
context:
space:
mode:
authornicola <nicola@138bc75d-0d04-0410-961f-82ee72b054a4>2010-10-07 18:37:43 +0000
committernicola <nicola@138bc75d-0d04-0410-961f-82ee72b054a4>2010-10-07 18:37:43 +0000
commit31a382080d861bfb72d24f186d1cc1b2c07b2df4 (patch)
tree6fa06c1c3ab1df74b2a6b5470aabbb548045e929 /gcc/doc
parent0f8ad7621b89c896547eb7b3521d03cc3b0a1a18 (diff)
downloadgcc-31a382080d861bfb72d24f186d1cc1b2c07b2df4.tar.gz
In gcc/:
2010-10-07 Nicola Pero <nicola.pero@meta-innovation.com> * doc/objc.texi (Fast enumeration protocol): Mention that 'unsigned int' can also be used instead of 'unsigned long' in countByEnumeratingWithState:objects:count:. In gcc/objc/: 2010-10-07 Nicola Pero <nicola.pero@meta-innovation.com> PR objc/45925 * objc-act.c (objc_finish_foreach_loop): Convert return value of countByEnumeratingWithState:objects:count: to long unsigned int. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165129 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/doc')
-rw-r--r--gcc/doc/objc.texi5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/doc/objc.texi b/gcc/doc/objc.texi
index 2bb80d15254..87c985d1e67 100644
--- a/gcc/doc/objc.texi
+++ b/gcc/doc/objc.texi
@@ -955,3 +955,8 @@ object is added or removed). Or, if you are content with less strict
mutation checks, it could point to the number of objects in your
collection or some other value that can be checked to perform an
approximate check that the collection has not been mutated.
+
+Finally, note how we declared the @code{len} argument and the return
+value to be of type @code{unsigned long}. They could also be declared
+to be of type @code{unsigned int} and everything would still work.
+