mirror of
https://github.com/Orc/discount.git
synced 2026-09-25 04:10:00 +03:00
More brute-force casting to discourage sign extension
This commit is contained in:
+2
-2
@@ -147,12 +147,12 @@ typedef struct _flo {
|
||||
#define floindex(x) (x.i)
|
||||
|
||||
|
||||
static int
|
||||
static unsigned int
|
||||
flogetc(FLO *f)
|
||||
{
|
||||
if ( f && f->t ) {
|
||||
if ( f->i < S(f->t->text) )
|
||||
return T(f->t->text)[f->i++];
|
||||
return (unsigned char)T(f->t->text)[f->i++];
|
||||
f->t = f->t->next;
|
||||
f->i = 0;
|
||||
return flogetc(f);
|
||||
|
||||
Reference in New Issue
Block a user