Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
/*
Displayed result: r=565, res=565
Expected result: r=565, res=190
Fixed. So the expected result should be shown.
*/
#include <stdio.h>
static unsigned long get_val()
{
return 565;
}
static void test()
{
unsigned long r = get_val();
int res = r % 375;
printf("r=%lu, res=%d\n", r, res);
}
int main()
{
test();
}
bb84e3173This file is pinned to the selected release. Download the original to open it in your design tool.