git.y1.nz

gbdk-2020

GameBoy Development Kit
download: https://git.y1.nz/archives/gbdk.tar.gz
README | Files | Log | Refs | LICENSE

commit f2e9deab26942706db5137fe8aa2188ea153effb
parent 8ddd5f020a812ef91fff1e4dbadd5cf409716673
Author: Toxa <untoxa@mail.ru>
Date:   Fri, 19 Apr 2024 20:36:19 +0300

fix printf() parameters

Diffstat:
Mgbdk-lib/examples/cross-platform/randtest/src/testrand.c2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gbdk-lib/examples/cross-platform/randtest/src/testrand.c b/gbdk-lib/examples/cross-platform/randtest/src/testrand.c @@ -19,7 +19,7 @@ void main(void) while(TRUE) { waitpadup(); for (uint8_t i = 0; i != 16; i++) - printf("rand=%hx arand=%hx\n", (uint8_t)rand(), (uint8_t)arand()); + printf("r=%x a=%x\n", (uint16_t)rand(), (uint16_t)arand()); puts("press A..."); waitpad(J_A); }

This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.