diff options
Diffstat (limited to 'examples/gauss2.c')
| -rw-r--r-- | examples/gauss2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/gauss2.c b/examples/gauss2.c index 9558afd3..5ded4714 100644 --- a/examples/gauss2.c +++ b/examples/gauss2.c @@ -31,10 +31,10 @@ int main() // Print the gaussian bar chart
c_auto (cstr, bar)
c_forpair (index, count, csmap_int, mhist) {
- size_t n = (size_t) (_.count * StdDev * Scale * 2.5 / (float)N);
+ size_t n = (size_t) (*_.count * StdDev * Scale * 2.5 / (float)N);
if (n > 0) {
cstr_resize(&bar, n, '*');
- printf("%4d %s\n", _.index, cstr_str(&bar));
+ printf("%4d %s\n", *_.index, cstr_str(&bar));
}
}
}
|
