ports/emulators/mame/files/patch-src_emu_webengine.c
Jan Beich d97eadd0f0 emulators/mame: unbreak with clang 4.0
../../../../../src/emu/webengine.c:333:21: error: ordered comparison between pointer and zero
      ('int *' and 'int')
                if ((&data_length > 0) && (sizeof(file_name) > 0))
                     ~~~~~~~~~~~~ ^ ~

Reported by:	antoine (via exp-run)
2017-02-02 09:39:25 +00:00

11 lines
518 B
C

--- src/emu/webengine.c.orig 2015-09-30 06:29:01 UTC
+++ src/emu/webengine.c
@@ -330,7 +330,7 @@ int web_engine::begin_request_handler(st
// That upload_data contains more than we need. It also has the headers.
// We'll need to strip it down to just what we want.
- if ((&data_length > 0) && (sizeof(file_name) > 0))
+ if ((data_length > 0) && (sizeof(file_name) > 0))
{
// MSVC doesn't yet support variable-length arrays, so chop the string the old-fashioned way
upload_data[data_length] = '\0';