Skip to content

Commit

Permalink
Now that all objects are tagged, there is no possibility that an inte…
Browse files Browse the repository at this point in the history
…ger value will look like a broken heart, so remove the comment about that. Also, move the overflow comment to a more appropriate place.
  • Loading branch information
kr committed Jan 9, 2007
1 parent 5e7802e commit 187dc46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions prim.c
Expand Up @@ -126,12 +126,14 @@ prim_int_gt(datum rcv, datum args)
static datum
prim_int_minus(datum rcv, datum args)
{
/* TODO check that arithmetic result doesn't overflow */
return int2datum(datum2int(rcv) - datum2int(car(args)));
}

static datum
prim_int_plus(datum rcv, datum args)
{
/* TODO check that arithmetic result doesn't overflow */
return int2datum(datum2int(rcv) + datum2int(car(args)));
}

Expand All @@ -144,8 +146,6 @@ prim_int_percent(datum rcv, datum args)
prim_meth
prim_int(datum rcv, datum message)
{
/* TODO check that arithmetic result doesn't overflow */
/* TODO check that arithmetic result isn't a broken heart tag */
if (message == equals_sym) return prim_int_equals;
if (message == lt_sym) return prim_int_lt;
if (message == gt_sym) return prim_int_gt;
Expand Down

0 comments on commit 187dc46

Please sign in to comment.