(Yes, I will make it sooner or later)

This commit is contained in:
BlackLight 2010-10-26 22:07:13 +02:00
parent a41dc3b0f1
commit d5869c7810

View file

@ -216,6 +216,7 @@ __AI_som_train ()
double **inputs = NULL; double **inputs = NULL;
char query[1024] = { 0 }; char query[1024] = { 0 };
size_t i = 0, size_t i = 0,
num_rows = 0; num_rows = 0;
@ -276,7 +277,7 @@ __AI_som_train ()
{ {
row = (DB_row) DB_fetch_row ( res ); row = (DB_row) DB_fetch_row ( res );
tuples[i].gid = row[0] ? strtoul ( row[1], NULL, 10 ) : 0; tuples[i].gid = row[0] ? strtoul ( row[0], NULL, 10 ) : 0;
tuples[i].sid = row[1] ? strtoul ( row[1], NULL, 10 ) : 0; tuples[i].sid = row[1] ? strtoul ( row[1], NULL, 10 ) : 0;
tuples[i].rev = row[2] ? strtoul ( row[2], NULL, 10 ) : 0; tuples[i].rev = row[2] ? strtoul ( row[2], NULL, 10 ) : 0;
tuples[i].timestamp = row[3] ? (time_t) strtol ( row[3], NULL, 10 ) : (time_t) 0; tuples[i].timestamp = row[3] ? (time_t) strtol ( row[3], NULL, 10 ) : (time_t) 0;