Skip to content

Commit 78dfa9b

Browse files
committed
Adds warning note to lisp2c.c LispStringToCStr regarding endianness sensitivity
1 parent cfbd780 commit 78dfa9b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/lisp2c.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ int LispStringSimpleLength(LispPTR lispstring) {
3838
return (arrayp->fillpointer);
3939
}
4040

41+
/* XXX: this string conversion is NOT useable on byte-swapped (little-endian) machines
42+
*/
4143
void LispStringToCStr(LispPTR lispstring, char *cstring) {
4244
OneDArray *arrayp;
4345
char *base;

0 commit comments

Comments
 (0)