summaryrefslogtreecommitdiffstats
path: root/openmp/runtime/src/kmp_error.c
diff options
context:
space:
mode:
Diffstat (limited to 'openmp/runtime/src/kmp_error.c')
-rw-r--r--openmp/runtime/src/kmp_error.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/openmp/runtime/src/kmp_error.c b/openmp/runtime/src/kmp_error.c
index 825157afb47..f7c7c8e52f1 100644
--- a/openmp/runtime/src/kmp_error.c
+++ b/openmp/runtime/src/kmp_error.c
@@ -1,4 +1,4 @@
-/*
+/*
* kmp_error.c -- KPTS functions for error checking at runtime
*/
@@ -121,7 +121,7 @@ __kmp_pragma(
kmp_str_buf_t buffer;
kmp_msg_t prgm;
__kmp_str_buf_init( & buffer );
- if ( 0 < ct && ct <= cons_text_c_num ) {
+ if ( 0 < ct && ct < cons_text_c_num ) {
cons = cons_text_c[ ct ];
} else {
KMP_DEBUG_ASSERT( 0 );
OpenPOWER on IntegriCloud