File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ exqlite_malloc(int bytes)
37
37
{
38
38
assert (bytes > 0 );
39
39
40
- int * p = enif_alloc (bytes + sizeof (int ));
40
+ size_t * p = enif_alloc (bytes + sizeof (size_t ));
41
41
if (p ) {
42
42
p [0 ] = bytes ;
43
43
p ++ ;
@@ -53,7 +53,7 @@ exqlite_free(void* prior)
53
53
return ;
54
54
}
55
55
56
- int * p = prior ;
56
+ size_t * p = prior ;
57
57
58
58
// Shift the pointer back to free the proper block of data
59
59
p -- ;
@@ -67,10 +67,10 @@ exqlite_realloc(void* prior, int bytes)
67
67
assert (prior );
68
68
assert (bytes > 0 );
69
69
70
- int * p = prior ;
70
+ size_t * p = prior ;
71
71
p -- ;
72
72
73
- p = enif_realloc (p , bytes + sizeof (int ));
73
+ p = enif_realloc (p , bytes + sizeof (size_t ));
74
74
if (p ) {
75
75
p [0 ] = bytes ;
76
76
p ++ ;
@@ -86,7 +86,7 @@ exqlite_mem_size(void* prior)
86
86
return 0 ;
87
87
}
88
88
89
- int * p = prior ;
89
+ size_t * p = prior ;
90
90
p -- ;
91
91
92
92
return p [0 ];
You can’t perform that action at this time.
0 commit comments