Skip to content

Commit

Permalink
axe a couple extra uses of dead types in builtins, regenerate pretty-cvt
Browse files Browse the repository at this point in the history
--HG--
branch : com.mozilla.es4.smlnj
extra : convert_revision : 632690f4ae00569b24e7a7f8284af412fd52a451
  • Loading branch information
graydon committed Apr 16, 2008
1 parent 2aca8dc commit 3465ffc
Show file tree
Hide file tree
Showing 3 changed files with 558 additions and 560 deletions.
2 changes: 1 addition & 1 deletion builtins/Array.es
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,7 @@ package
// Then clamp it between 0 and len inclusive, and convert it to uint.
//
// Also used by Vector.es
helper function clamp(val: AnyNumber, len: double): uint {
helper function clamp(val: AnyNumber, len: double): double {
val = helper::toInteger(val);
if (val < 0)
val += len;
Expand Down
2 changes: 1 addition & 1 deletion builtins/double.es
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ package
x must be positive, f is in the range [0,20]. */

// FIXME: really informative, not intrinsic
native intrinsic function toFixedStep10(x : (double|decimal), f : double) : int;
native intrinsic function toFixedStep10(x : (double|decimal), f : double) : double;

intrinsic function toExponential(fractionDigits=undefined) : string {
return "**toExponential: FIXME**";
Expand Down
Loading

0 comments on commit 3465ffc

Please sign in to comment.