Skip to content

gcc compilation error #9

@pierrehpezier

Description

@pierrehpezier

src/coff.cpp:142:1: error: narrowing conversion of ‘2147483648’ from ‘unsigned int’ to ‘int’ inside { } [-Wnarrowing]

The correct fix:

git diff
diff --git a/src/maindef.h b/src/maindef.h
index d95742d..d75aaa5 100644
--- a/src/maindef.h
+++ b/src/maindef.h
@@ -104,7 +104,7 @@ static inline uint32 HighDWord (uint64 x) {

// Structure of integers and char *, used for tables of text strings
struct SIntTxt {

  • int a;
  • unsigned int a;^M
    const char * b;
    };

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions