summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorMichael Cahill <michael.cahill@mongodb.com>2015-08-26 22:34:37 +1000
committerMichael Cahill <michael.cahill@mongodb.com>2015-08-26 22:34:37 +1000
commit0d1129df17947036b2ef9e269b7dcdbc813d9ced (patch)
tree2a9484ad6c92410402a21d5a0fb0e80527bbaf4f /ext
parenta20d7964aa27e60bca5a515c945dabece394f701 (diff)
downloadmongo-0d1129df17947036b2ef9e269b7dcdbc813d9ced.tar.gz
Fix a build warning on OS X in the CSV extension.
../../../../ext/extractors/csv/csv_extractor.c:131:29: error: implicit conversion loses integer precision: 'long' to 'int' [-Werror,-Wshorten-64-to-32] csv_extractor->field_num = field_num;
Diffstat (limited to 'ext')
-rw-r--r--ext/extractors/csv/csv_extractor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/extractors/csv/csv_extractor.c b/ext/extractors/csv/csv_extractor.c
index 0dd110955ad..34b8d7c7c64 100644
--- a/ext/extractors/csv/csv_extractor.c
+++ b/ext/extractors/csv/csv_extractor.c
@@ -128,7 +128,7 @@ csv_customize(WT_EXTRACTOR *extractor, WT_SESSION *session,
return (errno);
*csv_extractor = *orig;
- csv_extractor->field_num = field_num;
+ csv_extractor->field_num = (int)field_num;
*customp = (WT_EXTRACTOR *)csv_extractor;
return (0);
}