Fix MSVC warnings in jsscope.cpp
authorDavid Mandelin <dmandelin@mozilla.com>
Tue, 23 Nov 2010 14:40:29 -0800
changeset 58287 8cdcb8f8aadbee7d4d2eea47174d3a78c4563f5a
parent 58286 d3adb226abe7f44876349d86c6e1a9cd56c3d458
child 58288 030db8b3b22ca698cb5b7e4b496386881b207d0f
push id1
push usershaver@mozilla.com
push dateTue, 04 Jan 2011 17:58:04 +0000
milestone2.0b8pre
Fix MSVC warnings in jsscope.cpp
js/src/jsscope.cpp
--- a/js/src/jsscope.cpp
+++ b/js/src/jsscope.cpp
@@ -968,19 +968,19 @@ JSObject::putProperty(JSContext *cx, jsi
             for (Shape *temp = lastProp; temp != shape; temp = temp->parent) {
                 if (temp->slotSpan <= slot)
                     temp->slotSpan = slot + 1;
             }
         }
 
         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
          * flags and we will need to update objShape, which is no longer "own".
          * In the last non-dictionary property case in the else clause just
          * below, getChildProperty handles this for us. First update flags.
          */
         updateFlags(shape);