Merge pull request #50939 from vnen/fix-variant-bool-conversion

Change Variant bool conversion to uint8_t
This commit is contained in:
Rémi Verschelde 2021-07-27 15:04:20 +02:00 committed by GitHub
commit b4778082d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -134,7 +134,7 @@ typedef void *GDNativeObjectPtr;
typedef void *GDNativeTypePtr; typedef void *GDNativeTypePtr;
typedef void *GDNativeMethodBindPtr; typedef void *GDNativeMethodBindPtr;
typedef int64_t GDNativeInt; typedef int64_t GDNativeInt;
typedef uint32_t GDNativeBool; typedef uint8_t GDNativeBool;
typedef uint64_t GDObjectInstanceID; typedef uint64_t GDObjectInstanceID;
/* VARIANT DATA I/O */ /* VARIANT DATA I/O */

View File

@ -105,7 +105,7 @@ struct PtrToArg {};
} \ } \
} }
MAKE_PTRARGCONV(bool, uint32_t); MAKE_PTRARGCONV(bool, uint8_t);
// Integer types. // Integer types.
MAKE_PTRARGCONV(uint8_t, int64_t); MAKE_PTRARGCONV(uint8_t, int64_t);
MAKE_PTRARGCONV(int8_t, int64_t); MAKE_PTRARGCONV(int8_t, int64_t);