@@ -1080,7 +1080,7 @@ call_readline(FILE *sys_stdin, FILE *sys_stdout, char *prompt) |
|
|
1080 |
1080 |
/* we have a valid line */ |
1081 |
1081 |
n = strlen(p); |
1082 |
1082 |
if (n > 0) { |
1083 |
|
-char *line; |
|
1083 |
+const char *line; |
1084 |
1084 |
int length = _py_get_history_length(); |
1085 |
1085 |
if (length > 0) |
1086 |
1086 |
#ifdef __APPLE__ |
@@ -1089,10 +1089,10 @@ call_readline(FILE *sys_stdin, FILE *sys_stdout, char *prompt) |
|
|
1089 |
1089 |
* Libedit's emulation uses 0-based indexes, |
1090 |
1090 |
* the real readline uses 1-based indexes. |
1091 |
1091 |
*/ |
1092 |
|
-line = history_get(length - 1)->line; |
|
1092 |
+line = (const char *)history_get(length - 1)->line; |
1093 |
1093 |
} else |
1094 |
1094 |
#endif /* __APPLE__ */ |
1095 |
|
-line = history_get(length)->line; |
|
1095 |
+line = (const char *)history_get(length)->line; |
1096 |
1096 |
else |
1097 |
1097 |
line = ""; |
1098 |
1098 |
if (strcmp(p, line)) |