diff mbox

[gomp4] GOMP_DIM_MASK tweak

Message ID 55D766CC.7010404@acm.org
State New
Headers show

Commit Message

Nathan Sidwell Aug. 21, 2015, 5:58 p.m. UTC
I've installed this to make GOMP_DIM_MASK return an unsigned type -- I tripped 
over some signed/unsigned compare warnings.

nathan
diff mbox

Patch

2015-08-21  Nathan Sidwell  <nathan@codesourcery.com>

	* gomp-constants.h (GOMP_DIM_MASK): Generate unsigned.

Index: gomp-constants.h
===================================================================
--- gomp-constants.h	(revision 227079)
+++ gomp-constants.h	(working copy)
@@ -126,7 +126,7 @@  enum gomp_map_kind
 #define GOMP_DIM_WORKER	1
 #define GOMP_DIM_VECTOR	2
 #define GOMP_DIM_MAX	3
-#define GOMP_DIM_MASK(X) (1 << (X))
+#define GOMP_DIM_MASK(X) (1u << (X))
 
 /* Varadic launch arguments.  */
 #define GOMP_LAUNCH_END 	0  /* End of args, no dev or op */