diff options
author | John Langford <jl@hunch.net> | 2009-12-05 00:00:03 +0300 |
---|---|---|
committer | John Langford <jl@hunch.net> | 2009-12-05 00:00:03 +0300 |
commit | 3bf2923ed8e786679f3c9ea22cf1df8c3f8e6ee5 (patch) | |
tree | 131540b7dd0e0e8b754b8a4894d7c81ee6d2fb48 /simple_label.cc | |
parent | e7e8db09f7838dea0769dbce07e86abf884aa82c (diff) |
debugged a bit
Diffstat (limited to 'simple_label.cc')
-rw-r--r-- | simple_label.cc | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/simple_label.cc b/simple_label.cc index dc4ab34a..25e6b69d 100644 --- a/simple_label.cc +++ b/simple_label.cc @@ -16,13 +16,12 @@ size_t read_cached_simple_label(void* v, io_buf& cache) { label_data* ld = (label_data*) v; char *c; - size_t tag_size = 0; - size_t total = sizeof(ld->label)+sizeof(ld->weight)+sizeof(tag_size); + size_t total = sizeof(ld->label)+sizeof(ld->weight); if (buf_read(cache, c, total) < total) return 0; c = bufread_simple_label(ld,c); - - return total+tag_size; + + return total; } char* bufcache_simple_label(label_data* ld, char* c) @@ -31,7 +30,6 @@ char* bufcache_simple_label(label_data* ld, char* c) c += sizeof(ld->label); *(float *)c = ld->weight; c += sizeof(ld->weight); - return c; } |