Skip to content

gcc compilation error #9

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;
    };

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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