summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Montague <mikemon@gmail.com>2014-03-29 07:26:37 -0700
committerMichael Montague <mikemon@gmail.com>2014-03-29 07:26:37 -0700
commitaa80c934c4613963a804ddbbf7c327901e11bc88 (patch)
tree9b363c7df209b826eed66c0ff334f67b95b5c582
parent05896097d6e0a79ce978df6aaa644eb76d3faa6e (diff)
freebsd fixesv0.4
-rw-r--r--src/io.cpp2
-rw-r--r--src/read.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/io.cpp b/src/io.cpp
index 9589f7b..e5c47de 100644
--- a/src/io.cpp
+++ b/src/io.cpp
@@ -1238,7 +1238,7 @@ static FObject MakeEncodedPort(FObject port)
FAssert(b != 0);
- if (bl >= 2 && b[0] == 0xFF && b[1] == 0xFE) // Little Endian
+ if (bl >= 2 && (unsigned char) b[0] == 0xFF && (unsigned char) b[1] == 0xFE) // Little Endian
return(MakeUtf16Port(port));
// if (bl >= 2 && b[0] == 0xFE && b[1] == 0xFF) // Big Endian
diff --git a/src/read.cpp b/src/read.cpp
index 6b045ec..938b86b 100644
--- a/src/read.cpp
+++ b/src/read.cpp
@@ -11,12 +11,12 @@ Foment
#include <pthread.h>
#endif // FOMENT_UNIX
#include <string.h>
+#include "foment.hpp"
#ifdef FOMENT_BSD
#include <stdlib.h>
#else // FOMENT_BSD
#include <malloc.h>
#endif // FOMENT_BSD
-#include "foment.hpp"
#include "syncthrd.hpp"
#include "io.hpp"
#include "unicode.hpp"