- Fix the "use of cast expressions as lvalues is deprecated" warning.
authorFilip Navara <filip.navara@gmail.com>
Sat, 29 May 2004 21:21:06 +0000 (21:21 +0000)
committerFilip Navara <filip.navara@gmail.com>
Sat, 29 May 2004 21:21:06 +0000 (21:21 +0000)
svn path=/trunk/; revision=9552

reactos/lib/kjs/ksrc/iostream.c

index 75ed6c1..7e084e2 100644 (file)
@@ -24,7 +24,7 @@
 
 /*
  * $Source: /cygdrive/c/RCVS/CVS/ReactOS/reactos/lib/kjs/ksrc/iostream.c,v $
- * $Id: iostream.c,v 1.1 2004/01/10 20:38:17 arty Exp $
+ * $Id: iostream.c,v 1.2 2004/05/29 21:21:06 navaraf Exp $
  */
 
 #include "jsint.h"
@@ -88,7 +88,7 @@ js_iostream_read (JSIOStream *stream, void *ptr, size_t size)
 
          stream->bufpos += got;
          size -= got;
-         (unsigned char *) ptr += got;
+         ptr = (void *)((unsigned char *)ptr + got);
          total += got;
        }
       else