projects
/
dcpu16
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
db943a1
)
minor cleanup
author
Justin Wind
<justin.wind@gmail.com>
Fri, 4 May 2012 22:04:57 +0000
(15:04 -0700)
committer
Justin Wind
<justin.wind@gmail.com>
Fri, 4 May 2012 22:04:57 +0000
(15:04 -0700)
quiet some gcc warnings
as-dcpu16.c
patch
|
blob
|
history
display.c
patch
|
blob
|
history
diff --git
a/as-dcpu16.c
b/as-dcpu16.c
index f22e848867ce58d74c831dff22c0c6ab5e7a9042..1475ddfa661303cdc9dd9461c6ce3ccde4d1b32c 100644
(file)
--- a/
as-dcpu16.c
+++ b/
as-dcpu16.c
@@
-710,7
+710,7
@@
int instr_assemble_(struct dynamic_array *labels, struct instruction_ *i, unsign
struct operand_ *o = i->operands;
if (opt_.verbose > 2) {
struct operand_ *o = i->operands;
if (opt_.verbose > 2) {
- printf("%s: assembling %p ", __func__, i);
+ printf("%s: assembling %p ", __func__,
(void *)
i);
instruction_print_(i, 1);
printf("(line %zu)\n", i->src_line);
}
instruction_print_(i, 1);
printf("(line %zu)\n", i->src_line);
}
@@
-743,7
+743,7
@@
while debugging, always reassemble
char *x;
unsigned long l;
char *x;
unsigned long l;
- DEBUG_PRINTF("DAT operand:'%s' next:%p\n", o->operand, o->next);
+ DEBUG_PRINTF("DAT operand:'%s' next:%p\n", o->operand,
(void *)
o->next);
/* is this a string? */
/* does it start with a quote, and end with the same quote? */
/* is this a string? */
/* does it start with a quote, and end with the same quote? */
diff --git
a/display.c
b/display.c
index 9d59b290030f54b3eaa93fc903dc9df236ef96d5..0fbfbf5e85749b7330fc6e90215855c0e4f393f0 100644
(file)
--- a/
display.c
+++ b/
display.c
@@
-44,9
+44,9
@@
/* cells are rendered from cell map, which is bitmap of two words, defining four eight-bit columns */
struct pixel_ {
/* cells are rendered from cell map, which is bitmap of two words, defining four eight-bit columns */
struct pixel_ {
- char r;
- char g;
- char b;
+
unsigned
char r;
+
unsigned
char g;
+
unsigned
char b;
};
/* buf will hold image file in memory */
};
/* buf will hold image file in memory */