trying to use long values

Hi! I'm trying to make a stepper turning a long time, with a IR remote.

I try to modify a simple code I found, mutliplying the steps (I'm still not sure of the turn numbers I will need).
It creates too big values, so I mess with long and L but I just can't get it to work...

Could somebody suggests me whats wrong?

      case 0xFFA857: // VOL+ button pressed
                      small_stepper.setSpeed(500); //Max seems to be 500
                      Steps2Take =  2048L*100L;  // Rotate CW 
                      small_stepper.step(Steps2Take) long ;
                      delay(2000); 
                      break;

Could somebody suggests me whats wrong?

Your code, being incomplete, doesn't compile.

small_stepper.step(Steps2Take) long ;

That doesn't look like valid syntax to me.

Sorry, yes I didn't put the rest of the code, it thought it was not necessary to find the error

here's the errors I get

34: warning: overflow in implicit constant conversion [-Woverflow]
Steps2Take = 2048L*100L; // Rotate CW

error: expected ';' before 'long'

small_stepper.step(Steps2Take) long ;

#include "Stepper.h"
#include "IRremote.h"

/*----- Variables, Pins -----*/
#define STEPS  32   // Number of steps per revolution of Internal shaft
int  Steps2Take;  // 2048 = 1 Revolution
int receiver = 12; // Signal Pin of IR receiver to Arduino Digital Pin 6

/*-----( Declare objects )-----*/
// Setup of proper sequencing for Motor Driver Pins
// In1, In2, In3, In4 in the sequence 1-3-2-4

Stepper small_stepper(STEPS, 8, 10, 9, 11);
IRrecv irrecv(receiver);    // create instance of 'irrecv'
decode_results results;     // create instance of 'decode_results'

void setup()
{ 
  irrecv.enableIRIn(); // Start the receiver
}

void loop()
{
if (irrecv.decode(&results)) // have we received an IR signal?

  {
    switch(results.value)

    {

      case 0xFFA857: // VOL+ button pressed
                      small_stepper.setSpeed(500); //Max seems to be 500
                      Steps2Take =  2048L*100L;  // Rotate CW 
                      small_stepper.step(Steps2Take) long ;
                      delay(2000); 
                      break;

      case 0xFF629D: // VOL- button pressed
                      small_stepper.setSpeed(500);
                      Steps2Take   =  -2048;  // Rotate CCW close
                      small_stepper.step(Steps2Take);
                      delay(2000); 
                      break;
                
    }
    
      irrecv.resume(); // receive the next value
                 digitalWrite(8, LOW);
                 digitalWrite(9, LOW);
                 digitalWrite(10, LOW);
                 digitalWrite(11, LOW);       
  }  


}/* --end main loop -- */

williamslg:
34: warning: overflow in implicit constant conversion [-Woverflow]
Steps2Take = 2048L*100L; // Rotate CW

16bit variable:

int  Steps2Take;

compiler is your friend!

small_stepper.step(Steps2Take) long ;

looks like still something out of place there, no?