]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
use string equality operator
authorMatthew Barr <matthew.barr@intel.com>
Fri, 16 Jun 2017 05:56:48 +0000 (15:56 +1000)
committerMatthew Barr <matthew.barr@intel.com>
Mon, 21 Aug 2017 01:19:20 +0000 (11:19 +1000)
util/cross_compile.cpp

index b4d1f5f143d10b3d41d44c740317cf695cfd63f9..f937f42f61b8df559e7eeac4f57f438dca7cd0a3 100644 (file)
@@ -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<hs_platform_info> 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;