small change to compile on osx

This small change allows tensorPattern to be compiled on OSX.