ソースを参照

fix for format '%d' expects argument of type 'int', but argument 2 has type 'size_t {aka long unsigned int}' [-Wformat]

Patrick Reilly 12 年 前
コミット
98638c78db
2 ファイル変更2 行追加2 行削除
  1. 1 1
      v8js.cc
  2. 1 1
      v8js_methods.cc

+ 1 - 1
v8js.cc

@@ -20,7 +20,7 @@
 /* $Id$ */
 
 #define V8JS_DEBUG 0
-#define PHP_V8_VERSION "0.1.4"
+//#define PHP_V8_VERSION "0.1.4"
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif

+ 1 - 1
v8js_methods.cc

@@ -75,7 +75,7 @@ static void _php_v8js_dumper(v8::Local<v8::Value> var, int level TSRMLS_DC) /* {
 
 	if (var->IsString())
 	{
-		php_printf("string(%d) \"%s\"\n", valstr_len, valstr);
+		php_printf("string(%zu) \"%s\"\n", valstr_len, valstr);
 	}
 	else if (var->IsBoolean())
 	{