diff options
author | unknown <hf@deer.(none)> | 2004-03-16 02:04:03 +0400 |
---|---|---|
committer | unknown <hf@deer.(none)> | 2004-03-16 02:04:03 +0400 |
commit | 4c0d915652466b8f6c7f1bb5b397f59cb5cea8d3 (patch) | |
tree | 0d6ba1e05381a3bc4db676c17c581f619d4f8916 /sql/item_strfunc.cc | |
parent | 9eff35de530f99b94bf4d197cd1627874a1bfb5a (diff) | |
download | mariadb-git-4c0d915652466b8f6c7f1bb5b397f59cb5cea8d3.tar.gz |
Small fix
sql/item_strfunc.cc:
that's the right fix
Diffstat (limited to 'sql/item_strfunc.cc')
-rw-r--r-- | sql/item_strfunc.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/item_strfunc.cc b/sql/item_strfunc.cc index 3c8689e1588..2833e1ca016 100644 --- a/sql/item_strfunc.cc +++ b/sql/item_strfunc.cc @@ -2721,7 +2721,7 @@ String *Item_func_uuid::val_str(String *str) { ulong tmp=sql_rnd_with_mutex(); uchar mac[6]; - unsigned int i; + int i; if (my_gethwaddr(mac)) { /* @@ -2731,7 +2731,7 @@ String *Item_func_uuid::val_str(String *str) randominit() here */ randominit(&uuid_rand, tmp + (ulong)current_thd, tmp + query_id); - for (i=0; i < sizeof(mac); i++) + for (i=0; i < (int)sizeof(mac); i++) mac[i]=(uchar)(my_rnd(&uuid_rand)*255); } s=clock_seq_and_node_str+sizeof(clock_seq_and_node_str)-1; |