When in doubt, typecast

This commit is contained in:
2026-04-23 10:45:01 +10:00
parent 5a867ac627
commit 4957536e23
+2 -7
View File
@@ -14,14 +14,9 @@ int inspect_read(unsigned char* bytecode, unsigned int pc, unsigned int jumps_ad
#define ISPRINT_SANITIZE(x) (isprint((int)x) > 0 ? (x) : '_') #define ISPRINT_SANITIZE(x) (isprint((int)x) > 0 ? (x) : '_')
#define MARKER_VALUE(pc, type) \ #define MARKER_VALUE(pc, type) \
(pc * sizeof(type)) ((unsigned int)(pc * sizeof(type)))
#if TOY_BITNESS == 64
#define MARKER "\t\033[" TOY_CC_FONT_BLACK "m" " %lu\t" TOY_CC_RESET
#else
#define MARKER "\t\033[" TOY_CC_FONT_BLACK "m" " %llu\t" TOY_CC_RESET
#endif
#define MARKER "\t\033[" TOY_CC_FONT_BLACK "m" " %u\t" TOY_CC_RESET
#define FONT_BLACK "\033[" TOY_CC_FONT_BLACK "m" #define FONT_BLACK "\033[" TOY_CC_FONT_BLACK "m"
//exposed functions //exposed functions