Skip to content

Commit

Permalink
merged changeset 591 (missing reading bug fix & GCC 4.4 compatibility…
Browse files Browse the repository at this point in the history
…) from cm to main

git-svn-id: https://pet.opendfki.de/repos/pet/main@593 4200e16c-5112-0410-ac55-d7fb557a720a
  • Loading branch information
yi_zhang committed Jul 15, 2009
1 parent 3dd8b8c commit 4adc3f5
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cheap/item.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1068,8 +1068,8 @@ tPhrasalItem::hypothesize_edge(list<tItem*> path, unsigned int i)
} else // every thing fine, create the new hypothesis
new_hypothesis(hypo->decomposition, dtrs, indices);
}
if (!hypo->inst_failed)
_hypotheses_path[path].push_back(hypo);
// if (!hypo->inst_failed) // this will cause missing readings when used with grandparenting
_hypotheses_path[path].push_back(hypo);
}
if (i < _hypotheses_path[path].size()){
if (_hypo_agendas[path].size() == 0)
Expand Down
2 changes: 1 addition & 1 deletion cheap/options.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ char* parse_options(int argc, char* argv[])
case OPTION_PG:
set_opt("opt_pg", 's');
if(optarg != NULL) {
char *pos = strchr("sgta", optarg[0]);
const char *pos = strchr("sgta", optarg[0]);
if(pos != NULL) {
set_opt("opt_pg", optarg[0]);
} else {
Expand Down
1 change: 1 addition & 0 deletions common/chunk-alloc.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#define _CHUNK_ALLOC_H_

#include <sys/types.h>
#include <cstdio>

/** The maximum number of chunks to allocate */
#define MAX_CHUNKS 16000
Expand Down
1 change: 1 addition & 0 deletions common/dumper.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#define _DUMPER_H_

#include "errors.h"
#include <cstdio>

/** This class implements binary serialization of some basic data structures.
* It dumps multi-byte data such as shorts or ints always in little endian
Expand Down
1 change: 1 addition & 0 deletions common/utility.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
#include <cstring>
#include <list>
#include <string>
#include <cstdio>

#define SET_SUBDIRECTORY "pet"

Expand Down
1 change: 1 addition & 0 deletions flop/flop.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#include "symtab.h"
#include "types.h"
#include <list>
#include <cstdio>

/***************************/
/* compile time parameters */
Expand Down

0 comments on commit 4adc3f5

Please sign in to comment.