From: Matthew Barr Date: Fri, 16 Jun 2017 05:56:48 +0000 (+1000) Subject: use string equality operator X-Git-Tag: v4.6.0^2~68 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=30f93634b8ccc07cf6737877f26b177705ad74ad;p=thirdparty%2Fvectorscan.git use string equality operator --- diff --git a/util/cross_compile.cpp b/util/cross_compile.cpp index b4d1f5f1..f937f42f 100644 --- a/util/cross_compile.cpp +++ b/util/cross_compile.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015-2016, Intel Corporation + * Copyright (c) 2015-2017, Intel Corporation * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: @@ -62,7 +62,7 @@ unique_ptr xcompileReadMode(const char *s) { if (!opt.empty()) { const size_t numOpts = ARRAY_LENGTH(xcompile_options); for (size_t i = 0; i < numOpts; i++) { - if (opt.compare(xcompile_options[i].name) == 0) { + if (opt == xcompile_options[i].name) { DEBUG_PRINTF("found opt %zu:%llu\n", i, xcompile_options[i].cpu_features); rv.cpu_features = xcompile_options[i].cpu_features;