[Openmp-commits] [openmp] r301318 - [OpenMP] Add missing parenthesis which triggers a compile error

George Rokos via Openmp-commits openmp-commits at lists.llvm.org
Tue Apr 25 08:55:40 PDT 2017


Author: grokos
Date: Tue Apr 25 10:55:39 2017
New Revision: 301318

URL: http://llvm.org/viewvc/llvm-project?rev=301318&view=rev
Log:
[OpenMP] Add missing parenthesis which triggers a compile error

Differential Revision: https://reviews.llvm.org/D32490


Modified:
    openmp/trunk/runtime/src/kmp_settings.cpp

Modified: openmp/trunk/runtime/src/kmp_settings.cpp
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/src/kmp_settings.cpp?rev=301318&r1=301317&r2=301318&view=diff
==============================================================================
--- openmp/trunk/runtime/src/kmp_settings.cpp (original)
+++ openmp/trunk/runtime/src/kmp_settings.cpp Tue Apr 25 10:55:39 2017
@@ -4353,7 +4353,7 @@ __kmp_stg_parse_hw_subset( char const *
   // Split by delimiter
   pos = input;
   components[level++] = pos;
-  while (pos = strchr(pos, ',')) {
+  while ((pos = strchr(pos, ','))) {
     *pos = '\0'; // modify input and avoid more copying
     components[level++] = ++pos; // expect something after ","
     if (level > MAX_T_LEVEL)




More information about the Openmp-commits mailing list