diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2012-08-04 13:02:44 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2012-08-04 13:02:44 -0700 |
commit | 7a4622714184f196d8592ee6188945fb0528bd06 (patch) | |
tree | 6096d73657c584d80abcf187c67617ad810d7e45 /highlight.h | |
parent | b904aa78e854b55414a5f6ea0a995fe9a852ee99 (diff) |
More warning fixes and switching from int to long or size_t
Diffstat (limited to 'highlight.h')
-rw-r--r-- | highlight.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/highlight.h b/highlight.h index 6ad19dfa..22121e48 100644 --- a/highlight.h +++ b/highlight.h @@ -83,7 +83,7 @@ struct file_detection_context_t; \param pos the cursor position. Used for quote matching, etc. \param error a list in which a description of each error will be inserted. May be 0, in whcich case no error descriptions will be generated. */ -void highlight_shell( const wcstring &buffstr, std::vector<int> &color, int pos, wcstring_list_t *error, const env_vars_snapshot_t &vars ); +void highlight_shell( const wcstring &buffstr, std::vector<int> &color, size_t pos, wcstring_list_t *error, const env_vars_snapshot_t &vars ); /** Perform syntax highlighting for the text in buff. Matching quotes and paranthesis are highlighted. The result is @@ -95,7 +95,7 @@ void highlight_shell( const wcstring &buffstr, std::vector<int> &color, int pos, \param pos the cursor position. Used for quote matching, etc. \param error a list in which a description of each error will be inserted. May be 0, in whcich case no error descriptions will be generated. */ -void highlight_universal( const wcstring &buffstr, std::vector<int> &color, int pos, wcstring_list_t *error, const env_vars_snapshot_t &vars ); +void highlight_universal( const wcstring &buffstr, std::vector<int> &color, size_t pos, wcstring_list_t *error, const env_vars_snapshot_t &vars ); /** Translate from HIGHLIGHT_* to FISH_COLOR_* according to environment |