Commit 2ecb396f authored by Christoph Mallon's avatar Christoph Mallon
Browse files

fehler76: assertion when converting float constant to int

fix source of fehler74 and fehler75.

[r15740]
parent 72e89dd1
/*$ -std=c99 $*/
#include <stdio.h> #include <stdio.h>
#include <math.h> #include <math.h>
......
...@@ -8,4 +8,5 @@ long long k(long long a) ...@@ -8,4 +8,5 @@ long long k(long long a)
int main(void) int main(void)
{ {
printf("%lld\n", k(0x80000000LL)); printf("%lld\n", k(0x80000000LL));
return 0;
} }
int main(void)
{
float f = 1223432e3;
long l = f;
printf("long %ld float %f\n", l, f);
return 0;
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment