History

20111003-1915

forsyth committed 15 years ago

Commit 71e861b1 parent 047deed3 files · +5 −3Browse files

Unified · Split

3 files
  1. CHANGES +2 −0
  2. include/version.h +1 −1
  3. libinterp/heap.c +2 −2
CHANGES+2−0
@@ -1,3 +1,5 @@
1+20111003
2+ libinterp/heap.c:/^dtype discount size of map [issue 258]
13 20110820
24 emu/*/devfs.c, emu/port/devfs-posix.c - stubs for osdisksize, Linux implementation of osdisksize
35 emu/port/devfs-posix.c - also try SOCK_DGRAM for AF_UNIX [issue 269]
include/version.h+1−1
@@ -1 +1 @@
1−#define VERSION "Fourth Edition (20110820)"
1+#define VERSION "Fourth Edition (20111003)"
libinterp/heap.c+2−2
@@ -158,7 +158,7 @@ freelist(Heap *h, int swept) · 157 unmodified lines
158158 l = l->tail;
159159 while(l != (List*)H) {
160160 t = l->t;
161− th = D2H((ulong)l);
161+ th = D2H(l);
162162 if(th->ref-- != 1)
163163 break;
164164 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
242242 {
243243 Type *t;
244244
245− t = malloc(sizeof(Type)+mapsize);
245+ t = malloc(sizeof(Type)-sizeof(t->map)+mapsize);
246246 if(t != nil) {
247247 t->ref = 1;
248248 t->free = destroy;