diff options
author | Pixel <pixel@nobis-crew.org> | 2011-10-27 09:18:52 -0700 |
---|---|---|
committer | Pixel <pixel@nobis-crew.org> | 2011-10-27 09:18:52 -0700 |
commit | fa67300f537808f7e3fa3bb501f1f268d520073b (patch) | |
tree | 4793a47c83761808415967e034c67f90fa1fd6e9 /includes/Handle.h | |
parent | 58327525051d0e282b4bc2d0d7ddd1bbad2e9b65 (diff) |
Fixing a few oddities, and having the 'clean' target cleaning LuaJIT as well.
Diffstat (limited to 'includes/Handle.h')
-rw-r--r-- | includes/Handle.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/Handle.h b/includes/Handle.h index 321d8db..5def509 100644 --- a/includes/Handle.h +++ b/includes/Handle.h @@ -32,7 +32,7 @@ class Handle { virtual const char * getName() = 0; virtual ssize_t read(void * buf, size_t count) throw (GeneralException); virtual ssize_t write(const void * buf, size_t count) throw (GeneralException); - void writeString(const char * str, size_t len = -1) { if (len < 0) len = strlen(str); write(str, len); } + void writeString(const char * str, ssize_t len = -1) { if (len < 0) len = strlen(str); write(str, len); } void writeString(const String & str) { write(str.to_charp(), str.strlen()); } virtual void rseek(off_t offset, int whence = SEEK_SET) throw (GeneralException); virtual void wseek(off_t offset, int whence = SEEK_SET) throw (GeneralException); |