You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by br...@apache.org on 2014/03/07 19:51:42 UTC
svn commit: r1575369 -
/subversion/trunk/subversion/libsvn_fs_x/string_table.c
Author: breser
Date: Fri Mar 7 18:51:42 2014
New Revision: 1575369
URL: http://svn.apache.org/r1575369
Log:
Typo fix, no functional change.
* subversion/libsvn_fs_x/string_table.c
(balance): s/hight/height/
Modified:
subversion/trunk/subversion/libsvn_fs_x/string_table.c
Modified: subversion/trunk/subversion/libsvn_fs_x/string_table.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_fs_x/string_table.c?rev=1575369&r1=1575368&r2=1575369&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_fs_x/string_table.c (original)
+++ subversion/trunk/subversion/libsvn_fs_x/string_table.c Fri Mar 7 18:51:42 2014
@@ -137,29 +137,29 @@ balance(builder_table_t *table,
builder_string_t **parent,
builder_string_t *node)
{
- unsigned left_hight = node->left ? node->left->depth + 1 : 0;
- unsigned right_hight = node->right ? node->right->depth + 1 : 0;
+ unsigned left_height = node->left ? node->left->depth + 1 : 0;
+ unsigned right_height = node->right ? node->right->depth + 1 : 0;
- if (left_hight > right_hight + 1)
+ if (left_height > right_height + 1)
{
builder_string_t *temp = node->left->right;
node->left->right = node;
*parent = node->left;
node->left = temp;
- --left_hight;
+ --left_height;
}
- else if (left_hight + 1 < right_hight)
+ else if (left_height + 1 < right_height)
{
builder_string_t *temp = node->right->left;
*parent = node->right;
node->right->left = node;
node->right = temp;
- --right_hight;
+ --right_height;
}
- node->depth = MAX(left_hight, right_hight);
+ node->depth = MAX(left_height, right_height);
}
static apr_uint16_t