diff --git a/src/cv2pdb.h b/src/cv2pdb.h index 76d6340..c61a74b 100644 --- a/src/cv2pdb.h +++ b/src/cv2pdb.h @@ -245,10 +245,9 @@ class CV2PDB : public LastError int allocDwarfTypes; static constexpr int BASE_USER_TYPE = 0x1000; - static constexpr int BASE_DWARF_TYPE = 0x1000; int nextUserType = BASE_USER_TYPE; - int nextDwarfType = BASE_DWARF_TYPE; + int nextDwarfType = BASE_USER_TYPE; int objectType; int emptyFieldListType; diff --git a/src/dwarf2pdb.cpp b/src/dwarf2pdb.cpp index c46ab32..b97dcb9 100644 --- a/src/dwarf2pdb.cpp +++ b/src/dwarf2pdb.cpp @@ -2143,7 +2143,7 @@ bool CV2PDB::addDWARFPublics() mspdb::Mod* mod = globalMod(); int type = 0; - int rc = mod->AddPublic2("public_all", img.text.secNo + 1, 0, BASE_DWARF_TYPE); + int rc = mod->AddPublic2("public_all", img.text.secNo + 1, 0, BASE_USER_TYPE); if (rc <= 0) return setError("cannot add public"); return true;