Fix typos.
authorMs2ger <ms2ger@gmail.com>
Wed, 15 Feb 2012 21:14:36 +0100
changeset 86824 e8a0f580cbe86dc18dd9820b79983b06ba9d801a
parent 86823 91606f210e752b10fabefd910fe6bc46a6094589
child 86825 2e5d8644b9f49e20d9cd135e0eb33fce43f72c83
push id126
push userMs2ger@gmail.com
push dateWed, 15 Feb 2012 20:14:56 +0000
milestone13.0a1
Fix typos.
dom/bindings/Codegen.py
--- a/dom/bindings/Codegen.py
+++ b/dom/bindings/Codegen.py
@@ -672,26 +672,26 @@ def getArgumentConversionTemplate(type, 
         # The result of all this is a number in the range [-2^31, 2^31)
         #
         # WebIDL conversions for the 8-bit, 16-bit, and 32-bit integer types
         # are defined in the same way, except that step 4 uses reduction mod
         # 2^8 and 2^16 for the 8-bit and 16-bit types respectively, and step 5
         # is only done for the signed types.
         #
         # C/C++ define integer conversion semantics to unsigned types as taking
-        # your input integer mod (1 + largest value repreesntable in the
+        # your input integer mod (1 + largest value representable in the
         # unsigned type).  Since 2^32 is zero mod 2^8, 2^16, and 2^32,
         # converting to the unsigned int of the relevant width will correctly
         # perform step 4; in particular, the 2^32 possibly subtracted in step 5
         # will become 0.
         #
         # Once we have step 4 done, we're just going to assume 2s-complement
         # representation and cast directly to the type we really want.
         #
-        # So we can cast directly for all unsigned types an for int32_t; for
+        # So we can cast directly for all unsigned types and for int32_t; for
         # the smaller-width signed types we need to cast through the
         # corresponding unsigned type.
         replacements["jstype"] = "int32_t"
         replacements["converter"] = "JS_ValueToECMAInt32"
         if tag is IDLType.Tags.int8:
             replacements["intermediateCast"] = "(uint8_t)"
         elif tag is IDLType.Tags.int16:
             replacements["intermediateCast"] = "(uint16_t)"