소스 검색

Fix problem using unsigned numbers in #line

Some compilers appear to have a problem using unsigned constiants
(e.g., 5U) in a #line directive.  This fix ensures the unsigned
extension isn't added to the numbers.

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
Gavin Halliday 13 년 전
부모
커밋
f7ba017a86
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      ecl/hqlcpp/hqlstmt.cpp

+ 1 - 1
ecl/hqlcpp/hqlstmt.cpp

@@ -376,7 +376,7 @@ IHqlStmt *  BuildCtx::addLine(const char * filename, unsigned lineNum)
     if (filename)
     {
         next->addExpr(createConstant(filename));
-        next->addExpr(getSizetConstant(lineNum));
+        next->addExpr(createConstant(createIntValue(lineNum, sizeof(int), true)));
     }
     return appendSimple(next);
 }