Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/ddmd/backend/code.d
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ module ddmd.backend.code;
import ddmd.backend.cc;
import ddmd.backend.cdef;
import ddmd.backend.code_x86;
import ddmd.backend.el : elem;
import ddmd.backend.outbuf;
import ddmd.backend.type;

Expand Down
6 changes: 3 additions & 3 deletions src/ddmd/iasm.d
Original file line number Diff line number Diff line change
Expand Up @@ -1420,7 +1420,7 @@ code *asm_emit(Loc loc,
break;

case VEX_NDD:
pc.Ivex.vvvv = ~popnd1.base.val;
pc.Ivex.vvvv = cast(ubyte) ~int(popnd1.base.val);

asm_make_modrm_byte(
auchOpcode.ptr, &usIdx,
Expand All @@ -1439,7 +1439,7 @@ code *asm_emit(Loc loc,

case VEX_DDS:
assert(usNumops == 3);
pc.Ivex.vvvv = ~popnd2.base.val;
pc.Ivex.vvvv = cast(ubyte) ~int(popnd2.base.val);

asm_make_modrm_byte(
auchOpcode.ptr, &usIdx,
Expand All @@ -1449,7 +1449,7 @@ code *asm_emit(Loc loc,
break;

case VEX_NDS:
pc.Ivex.vvvv = ~popnd2.base.val;
pc.Ivex.vvvv = cast(ubyte) ~int(popnd2.base.val);

if (aoptyTable1 == _m || aoptyTable1 == _rm)
asm_make_modrm_byte(
Expand Down
2 changes: 1 addition & 1 deletion src/ddmd/scanelf.d
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ void scanElfObjModule(void delegate(const(char)[] name, int pickAny) pAddSymbol,

const name = &string_tab[sym.st_name];
//printf("sym st_name = x%x\n", sym.st_name);
const pend = memchr(name, 0, string_tab.length - sym.st_name);
const pend = cast(const(char*)) memchr(name, 0, string_tab.length - sym.st_name);
if (!pend) // if didn't find terminating 0 inside the string section
return corrupt(__LINE__);
pAddSymbol(name[0 .. pend - name], 1);
Expand Down
2 changes: 1 addition & 1 deletion src/posix.mak
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ CXXFLAGS += \
endif
DFLAGS := -version=MARS $(PIC)
# Enable D warnings
DFLAGS += -wi
DFLAGS += -w -de

ifneq (,$(DEBUG))
ENABLE_DEBUG := 1
Expand Down