mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
patch 8.2.3481: failures when char is unsigned
Problem: Failures when char is unsigned. Solution: Use int8_T. Make a CI run with unsigned char. (James McCoy, closes #8936)
This commit is contained in:
parent
949de97da3
commit
2e258bd79f
8
.github/workflows/ci.yml
vendored
8
.github/workflows/ci.yml
vendored
@ -40,6 +40,7 @@ jobs:
|
|||||||
compiler: gcc
|
compiler: gcc
|
||||||
coverage: true
|
coverage: true
|
||||||
extra: testgui
|
extra: testgui
|
||||||
|
uchar: true
|
||||||
- features: huge
|
- features: huge
|
||||||
compiler: clang
|
compiler: clang
|
||||||
extra: asan
|
extra: asan
|
||||||
@ -111,10 +112,14 @@ jobs:
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
CFLAGS=""
|
||||||
if ${{ matrix.coverage == true }}; then
|
if ${{ matrix.coverage == true }}; then
|
||||||
echo "CFLAGS=--coverage -DUSE_GCOV_FLUSH"
|
CFLAGS="$CFLAGS --coverage -DUSE_GCOV_FLUSH"
|
||||||
echo "LDFLAGS=--coverage"
|
echo "LDFLAGS=--coverage"
|
||||||
fi
|
fi
|
||||||
|
if ${{ matrix.uchar == true }}; then
|
||||||
|
CFLAGS="$CFLAGS -funsigned-char"
|
||||||
|
fi
|
||||||
if ${{ contains(matrix.extra, 'testgui') }}; then
|
if ${{ contains(matrix.extra, 'testgui') }}; then
|
||||||
echo "TEST=-C src testgui"
|
echo "TEST=-C src testgui"
|
||||||
fi
|
fi
|
||||||
@ -130,6 +135,7 @@ jobs:
|
|||||||
if ${{ contains(matrix.extra, 'vimtags') }}; then
|
if ${{ contains(matrix.extra, 'vimtags') }}; then
|
||||||
echo "TEST=-C runtime/doc vimtags VIMEXE=../../${SRCDIR}/vim"
|
echo "TEST=-C runtime/doc vimtags VIMEXE=../../${SRCDIR}/vim"
|
||||||
fi
|
fi
|
||||||
|
echo "CFLAGS=$CFLAGS"
|
||||||
) >> $GITHUB_ENV
|
) >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Set up system
|
- name: Set up system
|
||||||
|
@ -1406,8 +1406,8 @@ typedef struct type_S type_T;
|
|||||||
struct type_S {
|
struct type_S {
|
||||||
vartype_T tt_type;
|
vartype_T tt_type;
|
||||||
int8_T tt_argcount; // for func, incl. vararg, -1 for unknown
|
int8_T tt_argcount; // for func, incl. vararg, -1 for unknown
|
||||||
char tt_min_argcount; // number of non-optional arguments
|
int8_T tt_min_argcount; // number of non-optional arguments
|
||||||
char tt_flags; // TTFLAG_ values
|
char_u tt_flags; // TTFLAG_ values
|
||||||
type_T *tt_member; // for list, dict, func return type
|
type_T *tt_member; // for list, dict, func return type
|
||||||
type_T **tt_args; // func argument types, allocated
|
type_T **tt_args; // func argument types, allocated
|
||||||
};
|
};
|
||||||
|
@ -757,6 +757,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
3481,
|
||||||
/**/
|
/**/
|
||||||
3480,
|
3480,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user