Skip to content

printf("%d") gives wrong output on the C128 #412

@swildner

Description

@swildner

Something is off with printf("%d") on the C128.

The following outputs a weird number on the C128, for example -15103 on VICE, or 14848 on Z64K, instead of 73 as expected. Works fine for the C64.

#include <stdio.h>

int
main(void)
{
	printf("%d\n", 73);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions