Fossil SCM

Fix harmless compiler warning seen with MSVC.

mistachkin 2015-01-19 18:38 trunk
Commit ac36755f3161d5c82be966d767a7fbe45c7c322c
1 file changed +1 -1
+1 -1
--- src/search.c
+++ src/search.c
@@ -165,11 +165,11 @@
165165
int i;
166166
167167
azDoc = fossil_malloc( sizeof(const char*)*(argc+1) );
168168
for(i=0; i<argc; i++) azDoc[i] = (const char*)sqlite3_value_text(argv[i]);
169169
score = search_score(p, argc, azDoc);
170
- fossil_free(azDoc);
170
+ fossil_free((void *)azDoc);
171171
sqlite3_result_int(context, score);
172172
}
173173
174174
/*
175175
** Register the "score()" SQL function to score its input text
176176
--- src/search.c
+++ src/search.c
@@ -165,11 +165,11 @@
165 int i;
166
167 azDoc = fossil_malloc( sizeof(const char*)*(argc+1) );
168 for(i=0; i<argc; i++) azDoc[i] = (const char*)sqlite3_value_text(argv[i]);
169 score = search_score(p, argc, azDoc);
170 fossil_free(azDoc);
171 sqlite3_result_int(context, score);
172 }
173
174 /*
175 ** Register the "score()" SQL function to score its input text
176
--- src/search.c
+++ src/search.c
@@ -165,11 +165,11 @@
165 int i;
166
167 azDoc = fossil_malloc( sizeof(const char*)*(argc+1) );
168 for(i=0; i<argc; i++) azDoc[i] = (const char*)sqlite3_value_text(argv[i]);
169 score = search_score(p, argc, azDoc);
170 fossil_free((void *)azDoc);
171 sqlite3_result_int(context, score);
172 }
173
174 /*
175 ** Register the "score()" SQL function to score its input text
176

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button