diff --git a/closure/goog/vec/float32array.js b/closure/goog/vec/float32array.js
index <HASH>..<HASH> 100644
--- a/closure/goog/vec/float32array.js
+++ b/closure/goog/vec/float32array.js
@@ -38,7 +38,7 @@ goog.provide('goog.vec.Float32Array');
  * @constructor
  */
 goog.vec.Float32Array = function(p0) {
-  this.length = p0.length || p0;
+  this.length = /** @type {number} */ (p0.length || p0);
   for (var i = 0; i < this.length; i++) {
     this[i] = p0[i] || 0;
   }
diff --git a/closure/goog/vec/float64array.js b/closure/goog/vec/float64array.js
index <HASH>..<HASH> 100644
--- a/closure/goog/vec/float64array.js
+++ b/closure/goog/vec/float64array.js
@@ -38,7 +38,7 @@ goog.provide('goog.vec.Float64Array');
  * @constructor
  */
 goog.vec.Float64Array = function(p0) {
-  this.length = p0.length || p0;
+  this.length = /** @type {number} */ (p0.length || p0);
   for (var i = 0; i < this.length; i++) {
     this[i] = p0[i] || 0;
   }
Ensure Array-like types have a properly typed 'length' property in
preparation for cl/<I>.
-------------
Created by MOE: <URL>