PATCH: Fix integer/pointer size mismatch in splay-tree.h

Kai Tietz Kai.Tietz@onevision.com
Mon Mar 12 10:43:00 GMT 2007


Hallo,

As to see, this patch is obvious. Sorry, that I posted it first to the 
wrong news group.

ChangeLog:
2007-03-11  Kai Tietz  <Kai.Tietz@onevision.com>
 
        * splay-tree.h (splay_tree_key): type declared as size_t
         (splay_tree_value): Ditto


Regards,
i.A. Kai Tietz

Patch:
Index: splay-tree.h
===================================================================
--- splay-tree.h        (revision 122691)
+++ splay-tree.h        (working copy)
@@ -44,8 +44,8 @@
    these types, if necessary.  These types should be sufficiently wide
    that any pointer or scalar can be cast to these types, and then
    cast back, without loss of precision.  */
-typedef unsigned long int splay_tree_key;
-typedef unsigned long int splay_tree_value;
+typedef size_t splay_tree_key;
+typedef size_t splay_tree_value;
 
 /* Forward declaration for a node in the tree.  */
 typedef struct splay_tree_node_s *splay_tree_node;



More information about the Gcc-patches mailing list