summaryrefslogtreecommitdiff
path: root/storage/sphinx/snippets_udf.cc
diff options
context:
space:
mode:
Diffstat (limited to 'storage/sphinx/snippets_udf.cc')
-rw-r--r--storage/sphinx/snippets_udf.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/storage/sphinx/snippets_udf.cc b/storage/sphinx/snippets_udf.cc
index 2015483d347..90fde5d9c63 100644
--- a/storage/sphinx/snippets_udf.cc
+++ b/storage/sphinx/snippets_udf.cc
@@ -449,7 +449,7 @@ int CSphUrl::Connect()
char * pError = NULL;
do
{
- iSocket = socket ( iDomain, SOCK_STREAM, 0 );
+ iSocket = (int)socket ( iDomain, SOCK_STREAM, 0 );
if ( iSocket==-1 )
{
pError = "Failed to create client socket";
@@ -641,7 +641,7 @@ struct CSphSnippets
}
#define STRING CHECK_TYPE(STRING_RESULT)
-#define INT CHECK_TYPE(INT_RESULT); int iValue = *(long long *)pArgs->args[i]
+#define INT CHECK_TYPE(INT_RESULT); int iValue =(int)*(long long *)pArgs->args[i]
my_bool sphinx_snippets_init ( UDF_INIT * pUDF, UDF_ARGS * pArgs, char * sMessage )
{