From 719bc6faad0765728413e38f8348e0cf53cf654d Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 4 Nov 2006 12:42:03 +0000 Subject: [PATCH] document the problem with using arrays whose element size is larger than the actual size of the elements stored in them (bug 1572314) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43029 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- docs/latex/wx/array.tex | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/latex/wx/array.tex b/docs/latex/wx/array.tex index dc2306e235..9910452a57 100644 --- a/docs/latex/wx/array.tex +++ b/docs/latex/wx/array.tex @@ -133,7 +133,11 @@ WX_DEFINE_SORTED_ARRAY_INT(int, ArrayOfSortedInts); \end{verbatim} i.e. there is only one {\tt DEFINE} macro and no need for separate -{\tt DECLARE} one. +{\tt DECLARE} one. For the arrays of the primitive types, the macros +{\tt WX\_DEFINE\_ARRAY\_CHAR/SHORT/INT/SIZE\_T/LONG/DOUBLE} should be used +depending on the sizeof of the values (notice that storing values of smaller +type, e.g. shorts, in an array of larger one, e.g. {\tt ARRAY\_INT}, does +\emph{not} work on all architectures!). \wxheading{See also:} -- 2.45.2