[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gnash-commit] gnash/libbase container.h noseek_fd_adapter.cpp
From: |
strk |
Subject: |
Re: [Gnash-commit] gnash/libbase container.h noseek_fd_adapter.cpp |
Date: |
Sat, 4 Nov 2006 17:39:16 +0100 |
On Sat, Nov 04, 2006 at 07:03:48PM +0300, Vitaly Alexeev wrote:
> strk <address@hidden> wrote: On Fri, Nov 03, 2006 at 03:28:00PM +0000,
> Vitaly Alexeev wrote:
>
> > - ssize_t bytes_read = read(_fd, (void*)buf, bytes_needed);
> > + size_t bytes_read = read(_fd, (void*)buf, bytes_needed);
> Does 'read' return an unsigned type on your system instead ?
>
> --strk;
>
> No, I have made a bug (win32 has no type ssize_t and I have mechanically
> replaced ssize_t on size_t)
>
> This
> size_t bytes_read = read (_fd, (void *) buf, bytes_needed);
>
> should be replaced on
>
> int bytes_read = read (_fd, (void *) buf, bytes_needed);
What about typedef'ing ssize_t as 'unsigned int' IFF building
against win32 instead ?
--strk;