Unified · Split
| @@ -1,3 +1,5 @@ | ||
| 1 | +20111003 | |
| 2 | + libinterp/heap.c:/^dtype discount size of map [issue 258] | |
| 1 | 3 | 20110820 |
| 2 | 4 | emu/*/devfs.c, emu/port/devfs-posix.c - stubs for osdisksize, Linux implementation of osdisksize |
| 3 | 5 | emu/port/devfs-posix.c - also try SOCK_DGRAM for AF_UNIX [issue 269] |
| @@ -1 +1 @@ | ||
| 1 | −#define VERSION "Fourth Edition (20110820)" | |
| 1 | +#define VERSION "Fourth Edition (20111003)" | |
| @@ -158,7 +158,7 @@ freelist(Heap *h, int swept) · 157 unmodified lines | ||
| 158 | 158 | l = l->tail; |
| 159 | 159 | while(l != (List*)H) { |
| 160 | 160 | t = l->t; |
| 161 | − th = D2H((ulong)l); | |
| 161 | + th = D2H(l); | |
| 162 | 162 | if(th->ref-- != 1) |
| 163 | 163 | break; |
| 164 | 164 | th->t->ref--; /* should be &Tlist and ref shouldn't go to 0 here nor be 0 already */ |
| @@ -242,7 +242,7 @@ dtype(void (*destroy)(Heap*, int), int size, uchar *map, int mapsize) · 77 unmodified lines | ||
| 242 | 242 | { |
| 243 | 243 | Type *t; |
| 244 | 244 | |
| 245 | − t = malloc(sizeof(Type)+mapsize); | |
| 245 | + t = malloc(sizeof(Type)-sizeof(t->map)+mapsize); | |
| 246 | 246 | if(t != nil) { |
| 247 | 247 | t->ref = 1; |
| 248 | 248 | t->free = destroy; |