From 4e50af97f4dad57a6329fdc735db89d26885c84d Mon Sep 17 00:00:00 2001 From: Dan Witte Date: Fri, 2 Apr 2010 14:03:27 -0700 Subject: [PATCH] Typo fix. --- js/src/ctypes/CTypes.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/src/ctypes/CTypes.cpp b/js/src/ctypes/CTypes.cpp index 72f215eed53..7e9f8c9cf02 100644 --- a/js/src/ctypes/CTypes.cpp +++ b/js/src/ctypes/CTypes.cpp @@ -4659,7 +4659,7 @@ FunctionType::Call(JSContext* cx, // prepare the values for each argument AutoValueAutoArray values; AutoValueAutoArray strings; - if (!values.resize(fninfo->mArgTypes.length())) { + if (!values.resize(argc)) { JS_ReportOutOfMemory(cx); return false; }