Fossil SCM
Fix harmless compiler warning seen with MSVC.
Commit
ac36755f3161d5c82be966d767a7fbe45c7c322c
Parent
151473ae36618a9…
1 file changed
+1
-1
+1
-1
| --- src/search.c | ||
| +++ src/search.c | ||
| @@ -165,11 +165,11 @@ | ||
| 165 | 165 | int i; |
| 166 | 166 | |
| 167 | 167 | azDoc = fossil_malloc( sizeof(const char*)*(argc+1) ); |
| 168 | 168 | for(i=0; i<argc; i++) azDoc[i] = (const char*)sqlite3_value_text(argv[i]); |
| 169 | 169 | score = search_score(p, argc, azDoc); |
| 170 | - fossil_free(azDoc); | |
| 170 | + fossil_free((void *)azDoc); | |
| 171 | 171 | sqlite3_result_int(context, score); |
| 172 | 172 | } |
| 173 | 173 | |
| 174 | 174 | /* |
| 175 | 175 | ** Register the "score()" SQL function to score its input text |
| 176 | 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(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 |