OSSP CVS Repository

ossp - Difference in ossp-pkg/sio/sio_sio.c versions 1.4 and 1.5
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/sio/sio_sio.c 1.4 -> 1.5

--- sio_sio.c    2003/06/17 14:01:23     1.4
+++ sio_sio.c    2003/06/30 10:36:52     1.5
@@ -32,13 +32,14 @@
 #include <stdlib.h>
 #include <string.h>
 #include <limits.h>
-#ifndef SIZE_T_MAX
-#define SIZE_T_MAX UINT_MAX
-#endif
 
 #include "al.h"
 #include "sio.h"
 
+#ifndef SIZE_T_MAX
+#define SIZE_T_MAX (((((size_t)1 << ((sizeof(size_t) * 8) - 1)) - 1) << 1) + 1)
+#endif
+
 typedef struct {
     sio_t      *upstream;
     al_label_t  my_data_label;

CVSTrac 2.0.1