diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-08-07 07:36:05 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-08-07 07:36:05 +0400 |
commit | f97a4bd25458fdc8da1a97f7b68a305c8ab35ff4 (patch) | |
tree | 833fde5e6a46028fb9cebf1234cca6956bb6099b /source/blender/blenlib/intern/scanfill.c | |
parent | c2ad963e2877851a02f2aa7355751733867bd87c (diff) |
code cleanup: more zero as NULL pointers.
Diffstat (limited to 'source/blender/blenlib/intern/scanfill.c')
-rw-r--r-- | source/blender/blenlib/intern/scanfill.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/blenlib/intern/scanfill.c b/source/blender/blenlib/intern/scanfill.c index 873ce302b9c..c7163874dca 100644 --- a/source/blender/blenlib/intern/scanfill.c +++ b/source/blender/blenlib/intern/scanfill.c @@ -379,10 +379,10 @@ static ScanFillVertLink *addedgetoscanlist(ScanFillContext *sf_ctx, ScanFillEdge sc = (ScanFillVertLink *)bsearch(&scsearch, sf_ctx->_scdata, len, sizeof(ScanFillVertLink), vergscdata); - if (sc == 0) printf("Error in search edge: %p\n", (void *)eed); + if (sc == NULL) printf("Error in search edge: %p\n", (void *)eed); else if (addedgetoscanvert(sc, eed) == 0) return sc; - return 0; + return NULL; } static short boundinsideEV(ScanFillEdge *eed, ScanFillVert *eve) @@ -669,7 +669,7 @@ static int scanfill(ScanFillContext *sf_ctx, PolyFill *pf, const int flag) a = verts; break; } - if (ed2 == 0) { + if (ed2 == NULL) { sc->edge_first = sc->edge_last = NULL; /* printf("just 1 edge to vert\n"); */ BLI_addtail(&sf_ctx->filledgebase, ed1); @@ -1051,7 +1051,7 @@ int BLI_scanfill_calc_ex(ScanFillContext *sf_ctx, const int flag, const float no eed = nexted; } } - if (sf_ctx->filledgebase.first == 0) { + if (sf_ctx->filledgebase.first == NULL) { /* printf("All edges removed\n"); */ return 0; } |