Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Arne Øslebø
mapi
Commits
b74a58f1
Commit
b74a58f1
authored
Oct 19, 2005
by
Arne Øslebø
Browse files
signed=>unsigned when storing results
git-svn-id:
file:///home/svn/mapi/trunk@217
8d5bb341-7cf1-0310-8cf6-ba355fef3186
parent
92faf4cf
Changes
1
Hide whitespace changes
Inline
Side-by-side
stdlib/res2file.c
View file @
b74a58f1
...
...
@@ -121,7 +121,7 @@ static void ullstr(mapidflib_function_instance_t *i, int fd) {
char
str
[
1024
];
res
=
((
mapidflib_result_t
*
)
fhlp_get_res
(
i
))
->
data
;
snprintf
(
str
,
1024
,
"%ll
d
"
,
*
res
);
snprintf
(
str
,
1024
,
"%ll
u
"
,
*
res
);
write
(
fd
,
str
,
strlen
(
str
));
};
...
...
@@ -139,7 +139,7 @@ static void stats(mapidflib_function_instance_t *i, int fd) {
char
str
[
1024
];
res
=
((
mapidflib_result_t
*
)
fhlp_get_res
(
i
))
->
data
;
snprintf
(
str
,
1024
,
"%ll
d
%Lf %Lf %f %f"
,
res
->
count
,
res
->
sum
,
res
->
sum2
,
res
->
min
,
res
->
max
);
snprintf
(
str
,
1024
,
"%ll
u
%Lf %Lf %f %f"
,
res
->
count
,
res
->
sum
,
res
->
sum2
,
res
->
min
,
res
->
max
);
write
(
fd
,
str
,
strlen
(
str
));
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment