• R/O
  • HTTP
  • SSH
  • HTTPS

kz_h8write: Commit

H8/3069F writer for KOZOS - kz_h8write


Commit MetaInfo

Revision854871109f1df2178e5f01a4fe91ad75c27ab2b2 (tree)
Zeit2012-04-28 11:41:32
AutorShinichiro Nakamura <shinta.main.jp@gmai...>
CommiterShinichiro Nakamura

Log Message

Fixed the warnings.

Ändern Zusammenfassung

Diff

--- a/src/kz_h8write.c
+++ b/src/kz_h8write.c
@@ -471,7 +471,7 @@ enum ErrorCode program(void)
471471 * 128バイト書き込みを実行する。
472472 */
473473 fprintf(stderr, "Programming:");
474- for (int i = 0; i < memory_lastaddr; i += 128) {
474+ for (int i = 0; i < (int)memory_lastaddr; i += 128) {
475475 unsigned char buf[256];
476476 unsigned char chksum = 0;
477477 buf[0] = 0x50;
--- a/src/motdump.c
+++ b/src/motdump.c
@@ -99,7 +99,7 @@ int main(int argc, char **argv) {
9999 if (ccnt > 0) {
100100 printf(" | ");
101101 for (int i = 0; i < COLSIZ; i++) {
102- if (i < ccnt) {
102+ if (i < (int)ccnt) {
103103 printf("%c", isprint(cbuf[i] & 0xff)
104104 ? (cbuf[i] & 0xff) : '.');
105105 } else {
Show on old repository browser