Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-10-01 15:12:49 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-10-01 15:12:49 +0400
commitc9c76a9a68ff9f0c32c6a1f77d386349ca5abaca (patch)
treedf7bfc03f8374e291f9f47d7d8e407cd40116e5c /source/blender/bmesh/operators/bmo_connect.c
parentb6bf0e49527d174c51e8644f05569c6618d32604 (diff)
add compiler hints that failing to create a bmesh face is unlikely.
Diffstat (limited to 'source/blender/bmesh/operators/bmo_connect.c')
-rw-r--r--source/blender/bmesh/operators/bmo_connect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/bmesh/operators/bmo_connect.c b/source/blender/bmesh/operators/bmo_connect.c
index bb2e49d043c..fde475c2d6a 100644
--- a/source/blender/bmesh/operators/bmo_connect.c
+++ b/source/blender/bmesh/operators/bmo_connect.c
@@ -506,7 +506,7 @@ void bmo_bridge_loops_exec(BMesh *bm, BMOperator *op)
vv2[i2next],
vv1[i1next],
f_example, TRUE);
- if (!f || f->len != 4) {
+ if (UNLIKELY((f == NULL) || (f->len != 4))) {
fprintf(stderr, "%s: in bridge! (bmesh internal error)\n", __func__);
}
else {