Fix a possible loss of data warning when compiling 64bit reported by Marc Stern.

This commit is contained in:
brectanus 2007-10-23 22:16:39 +00:00
parent 2b346dd086
commit faec5b8e9d

View File

@ -161,7 +161,7 @@ apr_table_t *collection_retrieve(modsec_rec *msr, const char *col_name,
}
/* NOTE: No rate if there has been no time elapsed */
td = (apr_time_sec(apr_time_now()) - create_time);
td = (int)(apr_time_sec(apr_time_now()) - create_time);
if (td == 0) {
var->value = apr_psprintf(msr->mp, "%d", 0);
}