summaryrefslogtreecommitdiff
path: root/src/glibext
diff options
context:
space:
mode:
Diffstat (limited to 'src/glibext')
-rw-r--r--src/glibext/umemslice.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/glibext/umemslice.c b/src/glibext/umemslice.c
index 1bdb4fe..40088ef 100644
--- a/src/glibext/umemslice.c
+++ b/src/glibext/umemslice.c
@@ -38,7 +38,7 @@
#define SLAB_SIZE (8 * 1024 * 1024)
-//#define SLAB_SIZE (32 * 1024)
+
/* Alloue un espace pour un nouveau slab en mémoire. */
static slice_slab_info_t *create_slice_slab(size_t, size_t);
@@ -353,7 +353,7 @@ void *g_umem_slice_alloc(GUMemSlice *slice)
result = iter->data_end;
- *((unsigned long *)&iter->data_end) += slice->obj_size;
+ iter->data_end_ul += slice->obj_size;
return result;