Permalink
Browse files

use pretty isnull syntax

  • Loading branch information...
1 parent a8348a0 commit 7bb38e415e3d9eaa5b1cde8320c97d4bf96d6f23 @plobsing committed Aug 8, 2010
Showing with 2 additions and 5 deletions.
  1. +2 −5 src/deepclone.winxed
@@ -112,16 +112,13 @@ class DeepClone {
using static nci;
var dup;
- int nullp;
- ${ isnull nullp, v };
- if (nullp) {
+ if (v == null) {
dup = null;
}
else {
int addr = nci['pmc_addr'](v);
dup = self.seen[addr];
- ${ isnull nullp, dup };
- if (nullp) {
+ if (dup == null) {
int i = nci['pmc_typenum'](v);
dup = nci['Parrot_pmc_new_noinit'](i);
self.seen[addr] = dup;

0 comments on commit 7bb38e4

Please sign in to comment.