Silence lots of warnings in lib/DtHelp.

* 64bit warnings
* Missing prototypes
* explicit parentheses / brackets

There's still some work to be done, but, as always, it's a start ...
This commit is contained in:
Pascal Stumpf
2013-07-22 18:44:04 +02:00
committed by Jon Trulson
parent 0c165f56f5
commit 7e0a9517e3
65 changed files with 259 additions and 152 deletions

View File

@@ -900,7 +900,7 @@ _DtCvSaveInfo (
int len;
int start = layout->line_start;
int count = layout->line_bytes;
int txtCnt = canvas->txt_cnt;
long txtCnt = canvas->txt_cnt;
_DtCvUnit maxAscent = 0;
_DtCvUnit maxDescent = 0;
_DtCvUnit maxRegion = 0;
@@ -1984,7 +1984,7 @@ _DtCvCvtSegsToPts (
int cnt;
int start;
int length;
int lineIdx;
long lineIdx;
int linkIdx = -1;
_DtCvValue lastVisLnk = _DtCvFALSE;
_DtCvUnit minY = -1;
@@ -2020,7 +2020,7 @@ _DtCvCvtSegsToPts (
/*
* what line is this segment on?
*/
lineIdx = (int) ((*segs)->segment->internal_use);
lineIdx = (long) ((*segs)->segment->internal_use);
/*
* get some information about the line