Fix windows build (static_cast missing).
authoryangguo@chromium.org <yangguo@chromium.org>
Wed, 12 Nov 2014 08:15:30 +0000 (08:15 +0000)
committeryangguo@chromium.org <yangguo@chromium.org>
Wed, 12 Nov 2014 08:15:45 +0000 (08:15 +0000)
TBR=ishell@chromium.org

Review URL: https://codereview.chromium.org/714413005

Cr-Commit-Position: refs/heads/master@{#25278}
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@25278 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

src/string-builder.h

index f64f679870daa00def5f22bb2306764b72a9bafd..43b690dba38228d73a7b79c21465e8644f8b031d 100644 (file)
@@ -325,7 +325,7 @@ class IncrementalStringBuilder {
       while (*u != '\0') Append(*(u++));
     }
 
-    int written() { return cursor_ - start_; }
+    int written() { return static_cast<int>(cursor_ - start_); }
 
    private:
     DestChar* start_;