Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index 4498286916238f6ea009c1a3a0ce9124eb5e6cc4..6de212b97f1762ce3f697f271744caf5dc2152d4 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -525,7 +525,8 @@ Extension::Extension(const char* name, |
int source_length) |
: name_(name), |
source_length_(source_length >= 0 ? |
- source_length : (source ? strlen(source) : 0)), |
+ source_length : |
+ (source ? static_cast<int>(strlen(source)) : 0)), |
source_(source, source_length_), |
dep_count_(dep_count), |
deps_(deps), |