Skip to content
This repository
Browse code

[str] Switch to STRING_compare macro

Move the whole 'compare' logic into the string vtable functions

git-svn-id: https://svn.parrot.org/parrot/trunk@49419 d31e2699-5ff4-0310-a27c-f18f2fbe73fe
  • Loading branch information...
commit 6434573d04d7bcaa116ad05e2021216bfbf66db9 1 parent b876f4d
Nick Wellnhofer nwellnhof authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  src/bcgen.c
2  src/bcgen.c
@@ -1079,7 +1079,7 @@ find_outer_sub(ARGIN(bytecode * const bc), ARGIN_NULLOK(char const * const outer
1079 1079 cur_name = sub->name;
1080 1080
1081 1081 out_name = Parrot_str_new(interp, outername, len);
1082   - if (Parrot_str_compare(interp, cur_name, out_name) == 0)
  1082 + if (STRING_equal(interp, cur_name, out_name))
1083 1083 return current;
1084 1084
1085 1085 return NULL;

0 comments on commit 6434573

Please sign in to comment.
Something went wrong with that request. Please try again.