Compare commits
2 commits
8a47f3be5d
...
f05103d871
Author | SHA1 | Date | |
---|---|---|---|
f05103d871 | |||
c99a2dceb0 |
2 changed files with 2 additions and 2 deletions
2
Makefile
2
Makefile
|
@ -21,7 +21,7 @@ OBJECTS = $(addprefix ${OBJDIR}/,$(patsubst %.cpp,%.cpp.o,${SOURCES}))
|
||||||
all: KoreanNumbers
|
all: KoreanNumbers
|
||||||
|
|
||||||
KoreanNumbers: ${OBJECTS}
|
KoreanNumbers: ${OBJECTS}
|
||||||
$(CXX) $(CXXFLAGS) -o KoreanNumbers $^
|
$(CXX) $(CXXFLAGS) -fPIE -pie -o KoreanNumbers $^
|
||||||
|
|
||||||
${OBJDIR}/%.cpp.o: %.cpp
|
${OBJDIR}/%.cpp.o: %.cpp
|
||||||
@mkdir -p $(dir $@)
|
@mkdir -p $(dir $@)
|
||||||
|
|
|
@ -143,7 +143,7 @@ std::u8string value_to_korean(unsigned long long value) {
|
||||||
}
|
}
|
||||||
if(temp = (value / 10000) % 10; temp > 0) {
|
if(temp = (value / 10000) % 10; temp > 0) {
|
||||||
if(!s.empty()) { s.push_back(' '); }
|
if(!s.empty()) { s.push_back(' '); }
|
||||||
if(temp != 1) { s.append(digit_to_kword(temp)); }
|
if(temp > 0) { s.append(digit_to_kword(temp)); }
|
||||||
s.append(man);
|
s.append(man);
|
||||||
} else if (requires_man) {
|
} else if (requires_man) {
|
||||||
s.push_back(' ');
|
s.push_back(' ');
|
||||||
|
|
Loading…
Reference in a new issue