Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Martin Mareš
aim
Commits
0ab195d9
Commit
0ab195d9
authored
Dec 25, 2013
by
Ladislav Láska
Browse files
Zabraneno porovnani signed/unsigned (patch by MJ).
parent
edd89453
Changes
1
Hide whitespace changes
Inline
Side-by-side
aim-kit/aim-run.c
View file @
0ab195d9
...
...
@@ -32,7 +32,7 @@ image_load(char *filename)
pbm_readpbminit
(
f
,
&
cols
,
&
rows
,
&
fmt
);
struct
image
*
img
=
image_init
(
cols
,
rows
);
for
(
int
i
=
0
;
i
<
img
->
rows
;
i
++
)
for
(
unsigned
int
i
=
0
;
i
<
img
->
rows
;
i
++
)
pbm_readpbmrow_packed
(
f
,
img
->
bitmap
+
i
*
image_rowbytes
(
img
),
img
->
cols
,
fmt
);
...
...
@@ -47,7 +47,7 @@ image_save(char *filename, struct image *img)
if
(
!
f
)
{
perror
(
"save"
);
exit
(
EXIT_FAILURE
);
}
pbm_writepbminit
(
f
,
img
->
cols
,
img
->
rows
,
0
);
for
(
int
i
=
0
;
i
<
img
->
rows
;
i
++
)
for
(
unsigned
int
i
=
0
;
i
<
img
->
rows
;
i
++
)
pbm_writepbmrow_packed
(
f
,
img
->
bitmap
+
i
*
image_rowbytes
(
img
),
img
->
cols
,
0
);
...
...
Write
Preview
Supports
Markdown
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