diff mbox

osmtest - clarify assignment operation

Message ID 90026838F7CE447FBF3318901EC934FA@amr.corp.intel.com (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Smith, Stan Oct. 12, 2009, 5:17 p.m. UTC
None
diff mbox

Patch

diff --git a/opensm/osmtest/main.c b/opensm/osmtest/main.c
index 4bb9f82..6bfd7a6 100644
--- a/opensm/osmtest/main.c
+++ b/opensm/osmtest/main.c
@@ -433,7 +433,7 @@  int main(int argc, char *argv[])
 			/*
 			 * Specifies the max LID to search for during exploration.
 			 */
-			max_lid = atoi(optarg);
+			max_lid = (uint16_t) atoi(optarg);
 			printf("\tMAX-LID %u\n", max_lid);
 			break;