Skip to content

Commit

Permalink
Fixed crash
Browse files Browse the repository at this point in the history
git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@114 d0cd1f9f-072b-0410-8dd7-cf729c803f20
  • Loading branch information
theraysmith committed Aug 30, 2007
1 parent 4df0a77 commit eaef4c9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dict/hyphen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ char *hyphen_string = 0;
char *hyphen_unichar_lengths = 0;
int *hyphen_unichar_offsets = NULL;
float hyphen_rating = MAXFLOAT;
int hyphen_state = 0;
NODE_REF hyphen_state = 0;

/*----------------------------------------------------------------------
F u n c t i o n s
Expand All @@ -52,7 +52,7 @@ int hyphen_state = 0;
* line to permute the other half of the word.
**********************************************************************/
void set_hyphen_word(char *word, char *unichar_lengths, int *unichar_offsets,
float rating, int state) {
float rating, NODE_REF state) {
int char_index = strlen (unichar_lengths) - 1;

if (display_ratings)
Expand Down
5 changes: 3 additions & 2 deletions dict/hyphen.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
----------------------------------------------------------------------*/
#include "choices.h"
#include "emalloc.h"
#include "dawg.h"

/*----------------------------------------------------------------------
V a r i a b l e s
Expand All @@ -39,7 +40,7 @@ extern char *hyphen_string;
extern char *hyphen_unichar_lengths;
extern int *hyphen_unichar_offsets;
extern float hyphen_rating;
extern int hyphen_state;
extern NODE_REF hyphen_state;

/*----------------------------------------------------------------------
M a c r o s
Expand Down Expand Up @@ -120,5 +121,5 @@ last_word_on_line = FALSE
Public Function Prototypes
----------------------------------------------------------------------*/
void set_hyphen_word(char *word, char *unichar_lengths, int *unichar_offsets,
float rating, int state);
float rating, NODE_REF state);
#endif

0 comments on commit eaef4c9

Please sign in to comment.