<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>change log for rtems (2011-11-26)</title>
</head>
<body text='#000000' bgcolor='#ffffff'>
<a name='cs1'></a>
<table border='0' cellspacing='0' cellpadding='5' width='100%' bgcolor='#eeeeee'>
<tr><td colspan='3' bgcolor='#dddddd'>
 <font color='#bb2222'><strong>gedare</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2011-11-26 Gedare Bloom <gedare@rtems.org>

        PR 1963
        * score/include/rtems/score/rbtree.h: Fix _RBTree_Container_of macro to
        use correct arithmetic.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/ChangeLog.diff?r1=text&tr1=1.2993&r2=text&tr2=1.2994&diff_format=h">M</a></td><td width='1%'>1.2994</td><td width='100%'>cpukit/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/include/rtems/score/rbtree.h.diff?r1=text&tr1=1.7&r2=text&tr2=1.8&diff_format=h">M</a></td><td width='1%'>1.8</td><td width='100%'>cpukit/score/include/rtems/score/rbtree.h</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/cpukit/ChangeLog:1.2993 rtems/cpukit/ChangeLog:1.2994
--- rtems/cpukit/ChangeLog:1.2993       Sat Nov 26 12:10:38 2011
+++ rtems/cpukit/ChangeLog      Sat Nov 26 12:15:39 2011
</font><font color='#997700'>@@ -1,5 +1,11 @@
</font> 2011-11-26        Gedare Bloom <gedare@rtems.org>
 
<font color='#000088'>+   PR 1963
+       * score/include/rtems/score/rbtree.h: Fix _RBTree_Container_of macro to
+       use correct arithmetic.
+
+2011-11-26     Gedare Bloom <gedare@rtems.org>
+
</font>   PR 1964
        * score/inline/rtems/score/chain.inl: Fix chain is first and last.
 

<font color='#006600'>diff -u rtems/cpukit/score/include/rtems/score/rbtree.h:1.7 rtems/cpukit/score/include/rtems/score/rbtree.h:1.8
--- rtems/cpukit/score/include/rtems/score/rbtree.h:1.7 Thu Oct 20 06:58:54 2011
+++ rtems/cpukit/score/include/rtems/score/rbtree.h     Sat Nov 26 12:15:39 2011
</font><font color='#997700'>@@ -89,8 +89,11 @@
</font>  * field name of the RBTree_Node structure in @a container_type.
  *
  */
<font color='#880000'>-#define _RBTree_Container_of(node,container_type, node_field_name) \
-  ((container_type*) (node - offsetof(container_type,node_field_name)))
</font><font color='#000088'>+#define _RBTree_Container_of(node, container_type, node_field_name) \
+( \
+  (container_type*) \
+    ( (uintptr_t)(node) - offsetof(container_type, node_field_name) ) \
+)
</font> 
 /**
  *  This type indicates the direction.
</pre>
<p> </p>

<p>--<br />
<small>Generated by <a href="http://www.codewiz.org/projects/index.html#loginfo">Deluxe Loginfo</a> 2.122 by Bernardo Innocenti <bernie@develer.com></small></p>
</body>
</html>