Fixed compile on Windows with gcc

r=shaver


git-svn-id: svn://10.0.0.236/trunk@167398 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mattwillis%gmail.com
2005-01-07 20:52:04 +00:00
parent edf3bc6ccc
commit e6bd96b9c4

View File

@@ -104,7 +104,7 @@ JSValStorageStatementBinder (JSContext *cx,
aStatement->BindDoubleParameter(aParamIndex, d);
} else if (JSVAL_IS_STRING(val)) {
JSString *str = JSVAL_TO_STRING(val);
aStatement->BindWStringParameter(aParamIndex, NS_STATIC_CAST(PRUnichar*, JS_GetStringChars(str)));
aStatement->BindWStringParameter(aParamIndex, NS_REINTERPRET_CAST(PRUnichar*, JS_GetStringChars(str)));
} else if (JSVAL_IS_BOOLEAN(val)) {
if (val == JSVAL_TRUE) {
aStatement->BindInt32Parameter(aParamIndex, 1);