HISE Logo Forum
    • Categories
    • Register
    • Login

    SNEX bitshift & XOR error

    Scheduled Pinned Locked Moved C++ Development
    1 Posts 1 Posters 270 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ustkU
      ustk
      last edited by ustk

      Why is the bitshift operator throwing a parsing error? 🤔

      for (int i = 0; i < 5; i++)
      	int shift = 1 << i;
      

      Same for XOR

      int diff = last_key ^ key;
      

      EDIT: silly me, XOR is equivalent to !=

      Can't help pressing F5 in the forum...

      1 Reply Last reply Reply Quote 0
      • First post
        Last post

      26

      Online

      1.8k

      Users

      12.1k

      Topics

      105.1k

      Posts