[hipl-commit] [trunk] Rev 4717: lib: tool: fix signedness issues in xfrmapi code.

  • From: Mircea Gherzan <mircea.gherzan@xxxxxxxxxxxxxx>
  • To: hipl-commit@xxxxxxxxxxxxx
  • Date: Tue, 8 Jun 2010 22:57:58 +0300

Committer: Mircea Gherzan <mircea.gherzan@xxxxxxxxxxxxxx>
Date: 08/06/2010 at 22:57:58
Revision: 4717
Revision-id: mircea.gherzan@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Branch nick: trunk

Log:
  lib: tool: fix signedness issues in xfrmapi code.

Modified:
  M  lib/tool/xfrmapi.c

=== modified file 'lib/tool/xfrmapi.c'
--- lib/tool/xfrmapi.c  2010-06-08 19:54:28 +0000
+++ lib/tool/xfrmapi.c  2010-06-08 19:56:57 +0000
@@ -359,8 +359,8 @@
         const char *a_name = a_algo_names[aalg];
         int len;
 
-        HIP_ASSERT(ealg < sizeof(e_algo_names));
-        HIP_ASSERT(aalg < sizeof(a_algo_names));
+        HIP_ASSERT(ealg < (int)sizeof(e_algo_names));
+        HIP_ASSERT(aalg < (int)sizeof(a_algo_names));
 
         memset(alg.buf, 0, sizeof(alg.buf));

Other related posts:

  • » [hipl-commit] [trunk] Rev 4717: lib: tool: fix signedness issues in xfrmapi code. - Mircea Gherzan