From df7a5728f15f51db59d0ffa3564e9c1755a0ee07 Mon Sep 17 00:00:00 2001 From: David Mandelin Date: Tue, 23 Nov 2010 14:40:29 -0800 Subject: [PATCH] Fix MSVC warnings in jsscope.cpp --- js/src/jsscope.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/src/jsscope.cpp b/js/src/jsscope.cpp index da755985ab8..1dc0c34433c 100644 --- a/js/src/jsscope.cpp +++ b/js/src/jsscope.cpp @@ -973,9 +973,9 @@ JSObject::putProperty(JSContext *cx, jsid id, shape->rawGetter = getter; shape->rawSetter = setter; - shape->attrs = attrs; + shape->attrs = uint8(attrs); shape->flags = flags | Shape::IN_DICTIONARY; - shape->shortid = shortid; + shape->shortid = int16(shortid); /* * We are done updating shape and lastProp. Now we may need to update