diff options
author | albert-github <albert.tests@gmail.com> | 2020-10-20 16:04:28 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2020-10-20 16:04:28 (GMT) |
commit | c261c5eae9f831567775d7ad63f22436bdfac3aa (patch) | |
tree | 3d6e7e87f25433c4ef217549dad354a8fa6a7169 /src/vhdlcode.l | |
parent | 33341fe5fb8048411acea0276219a69be06fe02d (diff) | |
download | Doxygen-c261c5eae9f831567775d7ad63f22436bdfac3aa.zip Doxygen-c261c5eae9f831567775d7ad63f22436bdfac3aa.tar.gz Doxygen-c261c5eae9f831567775d7ad63f22436bdfac3aa.tar.bz2 |
Remove warnings from lexers
Remove warnings (Windows 64 bit compilation) like:
```
warning C4267: '+=': conversion from 'size_t' to 'int', possible loss of data
```
from the different lexers by making use of more consistent data types.
Diffstat (limited to 'src/vhdlcode.l')
-rw-r--r-- | src/vhdlcode.l | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/vhdlcode.l b/src/vhdlcode.l index 7610c9a..746be45 100644 --- a/src/vhdlcode.l +++ b/src/vhdlcode.l @@ -89,7 +89,7 @@ struct vhdlcodeYY_state CodeOutputInterface * code = 0; const char * inputString = 0; //!< the code fragment as text - int inputPosition = 0; //!< read offset during parsing + yy_size_t inputPosition = 0; //!< read offset during parsing int inputLines = 0; //!< number of line in the code fragment int yyLineNr = 0; //!< current line number bool needsTermination = false; @@ -136,7 +136,7 @@ static void appStringLower(QCString& qcs,const char* text); static void codifyMapLines(yyscan_t yyscanner,const char *text); static void writeFuncProto(yyscan_t yyscanner); static void writeProcessProto(yyscan_t yyscanner); -static int yyread(yyscan_t yyscanner,char *buf,yy_size_t max_size); +static yy_size_t yyread(yyscan_t yyscanner,char *buf,yy_size_t max_size); #if USE_STATE2STRING static const char *stateToString(int state); @@ -921,7 +921,7 @@ XILINX "INST"|"NET"|"PIN"|"BLKNM"|"BUFG"|"COLLAPSE"|"CPLD"|"COMPGRP"|"CONFI /*@ ---------------------------------------------------------------------------- */ -static int yyread(yyscan_t yyscanner,char *buf,yy_size_t max_size) +static yy_size_t yyread(yyscan_t yyscanner,char *buf,yy_size_t max_size) { struct yyguts_t *yyg = (struct yyguts_t*)yyscanner; yy_size_t inputPosition = yyextra->inputPosition; |