Compiler warning uses "double" type

Beta Testing discussion on mikroPascal PRO for PIC.
Post Reply
Author
Message
Dany
Posts: 3854
Joined: 18 Jun 2008 11:43
Location: Nieuwpoort, Belgium
Contact:

Compiler warning uses "double" type

#1 Post by Dany » 21 Jul 2013 16:54

Hi, a small remark (mP V6.0.0):

when compiling this code

Code: Select all

program Real_Artithmetic;

{ Declarations section }

const Multiplier = 1024.0;
var I: byte;
    VReal: real;
begin
  { Main program }
  VReal := Multiplier * I;
end.
the warning "implicite typecast performed from byte to double" for line

Code: Select all

VReal := Multiplier * I;
This would be no problem if the type "double" was defined in mikroPascal, but it is not. The compiler treats the word "double" the same as the type "real", but the help nor the documentation mentiones that alias.
This makes appreciating the warning more difficult.

Thanks in advance! and keep up the good work.
Kind regards, Dany.
Forget your perfect offering. There is a crack in everything, that's how the light gets in... (L. Cohen)
Remember when we were young? We shone like the sun. (David Gilmour)

User avatar
dejan.odabasic
mikroElektronika team
Posts: 2649
Joined: 30 Apr 2012 14:20

Re: Compiler warning uses "double" type

#2 Post by dejan.odabasic » 22 Jul 2013 16:07

Hello,

Thank you for reporting this, it will be corrected as soon as possible.

Best regards.

Post Reply

Return to “mikroPascal PRO for PIC Beta Testing”