Build fixes for ppc64 and x86_64 now that we use -Wshorten-64-to-32.
authorthatcher <thatcher@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 31 Aug 2006 21:44:39 +0000 (21:44 +0000)
committerthatcher <thatcher@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 31 Aug 2006 21:44:39 +0000 (21:44 +0000)
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16156 268f45cc-cd09-0410-ab3c-d52691b4dbfc

JavaScriptCore/API/minidom.c
JavaScriptCore/API/testapi.c

index b2b3307d0c0286a7c7761ff967f0e06560e27c26..4b4adee7ff3ca713b8cbfa91f1cb1ee3670f84d1 100644 (file)
@@ -88,8 +88,8 @@ static char* createStringWithContentsOfFile(const char* fileName)
 {
     char* buffer;
     
-    int buffer_size = 0;
-    int buffer_capacity = 1024;
+    size_t buffer_size = 0;
+    size_t buffer_capacity = 1024;
     buffer = (char*)malloc(buffer_capacity);
     
     FILE* f = fopen(fileName, "r");
index c11fc3f24f4b55fd19053dcd2facef7ff4377046..21c441388be32e09cc3c952c347e29b5bc3f745d 100644 (file)
@@ -846,8 +846,8 @@ static char* createStringWithContentsOfFile(const char* fileName)
 {
     char* buffer;
     
-    int buffer_size = 0;
-    int buffer_capacity = 1024;
+    size_t buffer_size = 0;
+    size_t buffer_capacity = 1024;
     buffer = (char*)malloc(buffer_capacity);
     
     FILE* f = fopen(fileName, "r");