[ttssh2-commit] [10407] uint8_t -> char

Back to archive index
scmno****@osdn***** scmno****@osdn*****
2022年 12月 12日 (月) 00:54:31 JST


Revision: 10407
          https://osdn.net/projects/ttssh2/scm/svn/commits/10407
Author:   zmatsuo
Date:     2022-12-12 00:54:31 +0900 (Mon, 12 Dec 2022)
Log Message:
-----------
uint8_t -> char

- gcc 11.3.0 でエラー
- charに変更して回避
  - stdint.h の include 忘れか

Modified Paths:
--------------
    trunk/cygwin/cygterm/cygterm_cfg.cpp

-------------- next part --------------
Modified: trunk/cygwin/cygterm/cygterm_cfg.cpp
===================================================================
--- trunk/cygwin/cygterm/cygterm_cfg.cpp	2022-12-11 12:08:36 UTC (rev 10406)
+++ trunk/cygwin/cygterm/cygterm_cfg.cpp	2022-12-11 15:54:31 UTC (rev 10407)
@@ -342,7 +342,7 @@
 		{ "debug_flag", offsetof(cfg_data_t, debug_flag), 'b' },
 	};
 	for (int i = 0; i < (int)(sizeof(list)/sizeof(list[0])); i++) {
-		uint8_t *p = (uint8_t *)cfg_data + list[i].offset;
+		char *p = (char *)cfg_data + list[i].offset;
 		switch (list[i].type) {
 		case 's': {
 			char *str = *(char **)p;


ttssh2-commit メーリングリストの案内
Back to archive index