Unreviewed, fix watch build after r244143
authortzagallo@apple.com <tzagallo@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 10 Apr 2019 21:15:18 +0000 (21:15 +0000)
committertzagallo@apple.com <tzagallo@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 10 Apr 2019 21:15:18 +0000 (21:15 +0000)
https://bugs.webkit.org/show_bug.cgi?id=195000

The result of `lseek` should be `off_t` rather than `int`.

* jsc.cpp:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@244149 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/jsc.cpp

index 9ff2b50..ad93f95 100644 (file)
@@ -1,5 +1,14 @@
 2019-04-10  Tadeu Zagallo  <tzagallo@apple.com>
 
+        Unreviewed, fix watch build after r244143
+        https://bugs.webkit.org/show_bug.cgi?id=195000
+
+        The result of `lseek` should be `off_t` rather than `int`.
+
+        * jsc.cpp:
+
+2019-04-10  Tadeu Zagallo  <tzagallo@apple.com>
+
         Add support for incremental bytecode cache updates
         https://bugs.webkit.org/show_bug.cgi?id=195000
 
index 8dfa9c7..78d1142 100644 (file)
@@ -1023,7 +1023,7 @@ public:
             return;
 
         m_cachedBytecode->commitUpdates([&] (off_t offset, const void* data, size_t size) {
-            int result = lseek(fd, offset, SEEK_SET);
+            off_t result = lseek(fd, offset, SEEK_SET);
             ASSERT_UNUSED(result, result != -1);
             size_t bytesWritten = static_cast<size_t>(write(fd, data, size));
             ASSERT_UNUSED(bytesWritten, bytesWritten == size);