--- mysql-5.0.orig/mysys/my_os2tls.c Wed Sep 27 09:26:00 2006 +++ mysql-5.0/mysys/my_os2tls.c Thu Sep 28 18:46:24 2006 @@ -120,7 +120,7 @@ if (*tls_storage == NULL) { /* allocate memory for indexes */ - *tls_storage = (ULONG)calloc( TLS_MINIMUM_AVAILABLE, sizeof(int)); + *tls_storage = (ULONG)calloc( TLS_MINIMUM_AVAILABLE, sizeof(ULONG)); /* fprintf(stderr, "tid#%d, tls_storage %x\n", _threadid, *tls_storage); */ } @@ -136,7 +136,7 @@ if (*tls_storage == NULL) { /* allocate memory for indexes */ - *tls_storage = (ULONG)calloc( TLS_MINIMUM_AVAILABLE, sizeof(int)); + *tls_storage = (ULONG)calloc( TLS_MINIMUM_AVAILABLE, sizeof(ULONG)); /* fprintf(stderr, "tid#%d, tls_storage %x\n", _threadid, *tls_storage); */ }