summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvva@eagle.mysql.r18.ru <>2004-02-05 18:58:10 +0400
committervva@eagle.mysql.r18.ru <>2004-02-05 18:58:10 +0400
commit4fbc147b2f6c596d64759ec342ed7ea9168d1d76 (patch)
treeaf9e79bf813020cb69462562823b607da46b91cf
parented75a5da7671d4101760117b8007654b95ab95a9 (diff)
downloadmariadb-git-4fbc147b2f6c596d64759ec342ed7ea9168d1d76.tar.gz
code and comments cleanup
-rw-r--r--sql/item_func.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/sql/item_func.cc b/sql/item_func.cc
index f90fcd5149e..e49980af733 100644
--- a/sql/item_func.cc
+++ b/sql/item_func.cc
@@ -2648,10 +2648,9 @@ longlong Item_func_inet_aton::val_int()
}
if (c != '.') // IP number can't end on '.'
{
- switch (dot_count)
- {
- case 1: result<<= 8;
- case 2: result<<= 8;
+ switch (dot_count) {
+ case 1: result<<= 8; /* fall through */
+ case 2: result<<= 8; /* fall through */
}
return (result << 8) + (ulonglong) byte_result;
}