X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flibpspp%2Ftower.c;h=9157987774e555c625d63af41a9343dc4447c574;hb=d0b91eae59319ab2756d0d43b9cb15eb9cd3c234;hp=e8d253d086731c61dd539962cbc79f9c2b3b0750;hpb=3bbb4370239deb29ebbf813d258aef6249e2a431;p=pspp-builds.git diff --git a/src/libpspp/tower.c b/src/libpspp/tower.c index e8d253d0..91579877 100644 --- a/src/libpspp/tower.c +++ b/src/libpspp/tower.c @@ -1,5 +1,5 @@ /* PSPP - a program for statistical analysis. - Copyright (C) 2007 Free Software Foundation, Inc. + Copyright (C) 2007, 2009 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -21,6 +21,7 @@ #include #include +#include #include static struct tower_node *abt_to_tower_node (const struct abt_node *); @@ -184,7 +185,7 @@ tower_lookup (const struct tower *t_, unsigned long height, unsigned long *node_start) { - struct tower *t = (struct tower *) t_; + struct tower *t = CONST_CAST (struct tower *, t_); struct abt_node *p; assert (height < tower_height (t)); @@ -237,7 +238,7 @@ tower_lookup (const struct tower *t_, struct tower_node * tower_get (const struct tower *t_, unsigned long int index) { - struct tower *t = (struct tower *) t_; + struct tower *t = CONST_CAST (struct tower *, t_); struct abt_node *p; assert (index < tower_count (t));