Sfoglia il codice sorgente

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 anni fa
parent
commit
f7ba017a86
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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);
 }