- Renamed t_s_int, t_int and t_dbl to respectively t_sint, t_uint and t_udbl for clarity
diff --git a/library/dhm.c b/library/dhm.c
index 1a8211e..59e78f8 100644
--- a/library/dhm.c
+++ b/library/dhm.c
@@ -136,7 +136,7 @@
     /*
      * Generate X as large as possible ( < P )
      */
-    n = x_size / sizeof( t_int ) + 1;
+    n = x_size / sizeof( t_uint ) + 1;
 
     mpi_fill_random( &ctx->X, n, f_rng, p_rng );
 
@@ -213,7 +213,7 @@
     /*
      * generate X and calculate GX = G^X mod P
      */
-    n = x_size / sizeof( t_int ) + 1;
+    n = x_size / sizeof( t_uint ) + 1;
 
     mpi_fill_random( &ctx->X, n, f_rng, p_rng );