diff options
author | florian <florian@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2008-08-11 18:47:43 +0000 |
---|---|---|
committer | florian <florian@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2008-08-11 18:47:43 +0000 |
commit | 33742fe504c31c5a04b963186db5355a83870377 (patch) | |
tree | 8ffaf70d297334ae58bfb6b194c8f9bb1e5f9c5e /compiler | |
parent | 11ad8d07a08f7ddaaa3ba193f2cf77bbd394fe0d (diff) | |
download | fpc-33742fe504c31c5a04b963186db5355a83870377.tar.gz |
* write expressions when getting an invalid operand error in preprocessor
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@11546 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/scanner.pas | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/scanner.pas b/compiler/scanner.pas index 9c6c03f268..196e9efa8e 100644 --- a/compiler/scanner.pas +++ b/compiler/scanner.pas @@ -1280,7 +1280,7 @@ In case not, the value returned can be arbitrary. else begin if (exprType * exprType2) = [] then - CTEError(exprType2, exprType, tokeninfo^[op].str); + CTEError(exprType2, exprType, '"'+hs1+' '+tokeninfo^[op].str+' '+hs2+'"'); if is_number(hs1) and is_number(hs2) then begin |