Fixing ToInt32 conversion routine.

This commit is contained in:
Ruben Ayrapetyan
2014-10-24 19:32:40 +04:00
parent 904be9ece6
commit 82e8895b4c
+1 -1
View File
@@ -790,7 +790,7 @@ ecma_number_to_int32 (ecma_number_t value) /**< unsigned 32-bit integer value */
return 0;
}
return (int32_t) value;
return (int32_t) (uint32_t) value;
} /* ecma_number_to_int32 */
/**