When I try to compile a sketch I have written, I get the following error message:

Error compiling.

c:/program files (x86)/arduino-1.0.1/hardware/tools/avr/bin/../lib/gcc/avr/4.3.2/../../../../avr/lib/avr6/crtm2560.o: In function `__vector_default': (.vectors+0xd8): relocation truncated to fit: R_AVR_13_PCREL against symbol `__vector_54' defined in .text.__vector_54 section in core.a(HardwareSerial.cpp.o)The code I am using contains the following function definition which is where the error is coming from:

boolean parseDelay(String str){

...

byte fractions[3] = {48,48,48};

...

temp.getBytes(fractions,3);

...

for(int i = 0; i < 2; i++){

if(fractions* < 48 || fractions** > 57){*

**Serial**.println("4");

return(false);

}

else {

fractions* -+ 48;*

}

}

...

temp2 = 10*fractions[0] + fractions[1];

if(temp2 >15){

return(false);

}

nextEventDelay += temp2;

...

}

I am pretty sure this is a bug and not just an error on my part because if I change the length of the fractions array to either 2 or 4 I get no error, and the sketch compiles properly.

I don't know enough to interpret the error message, and haven't found anything in the forum that mentions it, so I thought I would bring it up here.

Has anyone else seen this type of error?